$(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: [[1262736000000,1.12925],[1262822400000,1.12481],[1262908800000,1.12481],[1262995200000,1.12481],[1263081600000,1.12481],[1263168000000,1.12481],[1263254400000,1.13815],[1263340800000,1.13315],[1263427200000,1.14301],[1263513600000,1.13968],[1263600000000,1.13388],[1263686400000,1.13388],[1263772800000,1.13388],[1263859200000,1.13499],[1263945600000,1.12601],[1264032000000,1.11831],[1264118400000,1.11125],[1264204800000,1.10831],[1264291200000,1.10831],[1264377600000,1.10831],[1264464000000,1.11018],[1264550400000,1.09759],[1264636800000,1.09921],[1264723200000,1.0979],[1264809600000,1.09109],[1264896000000,1.09109]], 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: [[1262736000000, 1.129254],[1262736000000, 1.129254],[1262822400000, 1.124813],[1262908800000, 1.124813],[1262995200000, 1.124813],[1263081600000, 1.124813],[1263168000000, 1.124813],[1263254400000, 1.138154],[1263340800000, 1.133149],[1263427200000, 1.143014],[1263513600000, 1.139682],[1263600000000, 1.133878],[1263686400000, 1.133878],[1263772800000, 1.133878],[1263859200000, 1.134994],[1263945600000, 1.126012],[1264032000000, 1.118309],[1264118400000, 1.111247],[1264204800000, 1.108314],[1264291200000, 1.108314],[1264377600000, 1.108314],[1264464000000, 1.110176],[1264550400000, 1.097589],[1264636800000, 1.099211],[1264723200000, 1.097899],[1264809600000, 1.091085],[1264896000000, 1.091085]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });