$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1406851200000,1.75693],[1406937600000,1.73483],[1407024000000,1.73483],[1407110400000,1.73483],[1407196800000,1.76988],[1407283200000,1.7832],[1407369600000,1.79581],[1407456000000,1.79829],[1407542400000,1.82519],[1407628800000,1.82519],[1407715200000,1.82519],[1407801600000,1.85757],[1407888000000,1.913],[1407974400000,1.90569],[1408060800000,1.90354],[1408147200000,1.91264],[1408233600000,1.91264],[1408320000000,1.91264],[1408406400000,1.91197],[1408492800000,1.89172],[1408579200000,1.92924],[1408665600000,1.90058],[1408752000000,1.93307],[1408838400000,1.93307],[1408924800000,1.93307],[1409011200000,1.93307],[1409097600000,1.97077],[1409184000000,2.00135],[1409270400000,1.93286],[1409356800000,1.94909]], 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: [[1406851200000, 1.756928],[1406851200000, 1.756928],[1406937600000, 1.734825],[1407024000000, 1.734825],[1407110400000, 1.734825],[1407196800000, 1.769883],[1407283200000, 1.783199],[1407369600000, 1.795809],[1407456000000, 1.798292],[1407542400000, 1.825190],[1407628800000, 1.825190],[1407715200000, 1.825190],[1407801600000, 1.857575],[1407888000000, 1.912999],[1407974400000, 1.905692],[1408060800000, 1.903541],[1408147200000, 1.912643],[1408233600000, 1.912643],[1408320000000, 1.912643],[1408406400000, 1.911969],[1408492800000, 1.891724],[1408579200000, 1.929235],[1408665600000, 1.900583],[1408752000000, 1.933065],[1408838400000, 1.933065],[1408924800000, 1.933065],[1409011200000, 1.933065],[1409097600000, 1.970774],[1409184000000, 2.001351],[1409270400000, 1.932863],[1409356800000, 1.949092]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });