$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1356998400000,1.43607],[1357084800000,1.43607],[1357171200000,1.43607],[1357257600000,1.43625],[1357344000000,1.42492],[1357430400000,1.42492],[1357516800000,1.42492],[1357603200000,1.42492],[1357689600000,1.42784],[1357776000000,1.42466],[1357862400000,1.43618],[1357948800000,1.44372],[1358035200000,1.44372],[1358121600000,1.44372],[1358208000000,1.44835],[1358294400000,1.43959],[1358380800000,1.43023],[1358467200000,1.44285],[1358553600000,1.4276],[1358640000000,1.4276],[1358726400000,1.4276],[1358812800000,1.43056],[1358899200000,1.4303],[1358985600000,1.43953],[1359072000000,1.43925],[1359158400000,1.45013],[1359244800000,1.45013],[1359331200000,1.45013],[1359417600000,1.44394],[1359504000000,1.44879],[1359590400000,1.45573]], 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: [[1356998400000, 1.436071],[1356998400000, 1.436071],[1357084800000, 1.436071],[1357171200000, 1.436071],[1357257600000, 1.436252],[1357344000000, 1.424920],[1357430400000, 1.424920],[1357516800000, 1.424920],[1357603200000, 1.424920],[1357689600000, 1.427840],[1357776000000, 1.424664],[1357862400000, 1.436177],[1357948800000, 1.443721],[1358035200000, 1.443721],[1358121600000, 1.443721],[1358208000000, 1.448348],[1358294400000, 1.439593],[1358380800000, 1.430230],[1358467200000, 1.442852],[1358553600000, 1.427597],[1358640000000, 1.427597],[1358726400000, 1.427597],[1358812800000, 1.430558],[1358899200000, 1.430298],[1358985600000, 1.439528],[1359072000000, 1.439247],[1359158400000, 1.450131],[1359244800000, 1.450131],[1359331200000, 1.450131],[1359417600000, 1.443938],[1359504000000, 1.448792],[1359590400000, 1.455726]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });