$(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: [[1396310400000,1.69464],[1396396800000,1.7208],[1396483200000,1.74149],[1396569600000,1.72583],[1396656000000,1.78394],[1396742400000,1.78394],[1396828800000,1.78394],[1396915200000,1.78149],[1397001600000,1.79361],[1397088000000,1.82496],[1397174400000,1.93491],[1397260800000,1.92554],[1397347200000,1.92554],[1397433600000,1.92554],[1397520000000,1.98358],[1397606400000,1.8884],[1397692800000,1.73044],[1397779200000,1.71281],[1397865600000,1.70769],[1397952000000,1.70769],[1398038400000,1.70769],[1398124800000,1.70769],[1398211200000,1.71074],[1398297600000,1.7495],[1398384000000,1.73397],[1398470400000,1.73466],[1398556800000,1.73466],[1398643200000,1.73466],[1398729600000,1.72756],[1398816000000,1.74688]], 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: [[1396310400000, 1.694644],[1396310400000, 1.694644],[1396396800000, 1.720798],[1396483200000, 1.741489],[1396569600000, 1.725827],[1396656000000, 1.783938],[1396742400000, 1.783938],[1396828800000, 1.783938],[1396915200000, 1.781494],[1397001600000, 1.793606],[1397088000000, 1.824962],[1397174400000, 1.934914],[1397260800000, 1.925540],[1397347200000, 1.925540],[1397433600000, 1.925540],[1397520000000, 1.983584],[1397606400000, 1.888399],[1397692800000, 1.730441],[1397779200000, 1.712811],[1397865600000, 1.707691],[1397952000000, 1.707691],[1398038400000, 1.707691],[1398124800000, 1.707691],[1398211200000, 1.710745],[1398297600000, 1.749497],[1398384000000, 1.733973],[1398470400000, 1.734655],[1398556800000, 1.734655],[1398643200000, 1.734655],[1398729600000, 1.727562],[1398816000000, 1.746879]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });