$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс SKK, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс SKK', data: [[1185926400000,0.207464],[1186012800000,0.206112],[1186099200000,0.206473],[1186185600000,0.207236],[1186272000000,0.207236],[1186358400000,0.207236],[1186444800000,0.20905],[1186531200000,0.208624],[1186617600000,0.209044],[1186704000000,0.207108],[1186790400000,0.205585],[1186876800000,0.205585],[1186963200000,0.205585],[1187049600000,0.206301],[1187136000000,0.204867],[1187222400000,0.202138],[1187308800000,0.200282],[1187395200000,0.201371],[1187481600000,0.201371],[1187568000000,0.201371],[1187654400000,0.202198],[1187740800000,0.201946],[1187827200000,0.201829],[1187913600000,0.2033],[1188000000000,0.2033],[1188086400000,0.2033],[1188172800000,0.2033],[1188259200000,0.204558],[1188345600000,0.20443],[1188432000000,0.20346],[1188518400000,0.203706]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1185926400000, 0.207464],[1185926400000, 0.207464],[1186012800000, 0.206112],[1186099200000, 0.206473],[1186185600000, 0.207236],[1186272000000, 0.207236],[1186358400000, 0.207236],[1186444800000, 0.209050],[1186531200000, 0.208624],[1186617600000, 0.209044],[1186704000000, 0.207108],[1186790400000, 0.205585],[1186876800000, 0.205585],[1186963200000, 0.205585],[1187049600000, 0.206301],[1187136000000, 0.204867],[1187222400000, 0.202138],[1187308800000, 0.200282],[1187395200000, 0.201371],[1187481600000, 0.201371],[1187568000000, 0.201371],[1187654400000, 0.202198],[1187740800000, 0.201946],[1187827200000, 0.201829],[1187913600000, 0.203300],[1188000000000, 0.203300],[1188086400000, 0.203300],[1188172800000, 0.203300],[1188259200000, 0.204558],[1188345600000, 0.204430],[1188432000000, 0.203460],[1188518400000, 0.203706]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });