$(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: [[1406851200000,1.93524],[1406937600000,1.9043],[1407024000000,1.9043],[1407110400000,1.9043],[1407196800000,1.93379],[1407283200000,1.95833],[1407369600000,1.97142],[1407456000000,1.97681],[1407542400000,2.01347],[1407628800000,2.01347],[1407715200000,2.01347],[1407801600000,2.054],[1407888000000,2.12445],[1407974400000,2.12284],[1408060800000,2.12328],[1408147200000,2.13544],[1408233600000,2.13544],[1408320000000,2.13544],[1408406400000,2.12913],[1408492800000,2.10587],[1408579200000,2.15408],[1408665600000,2.12337],[1408752000000,2.17141],[1408838400000,2.17141],[1408924800000,2.17141],[1409011200000,2.17141],[1409097600000,2.21191],[1409184000000,2.24957],[1409270400000,2.17112],[1409356800000,2.19929]], 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.935242],[1406851200000, 1.935242],[1406937600000, 1.904304],[1407024000000, 1.904304],[1407110400000, 1.904304],[1407196800000, 1.933785],[1407283200000, 1.958335],[1407369600000, 1.971418],[1407456000000, 1.976806],[1407542400000, 2.013466],[1407628800000, 2.013466],[1407715200000, 2.013466],[1407801600000, 2.053998],[1407888000000, 2.124448],[1407974400000, 2.122838],[1408060800000, 2.123277],[1408147200000, 2.135435],[1408233600000, 2.135435],[1408320000000, 2.135435],[1408406400000, 2.129134],[1408492800000, 2.105866],[1408579200000, 2.154083],[1408665600000, 2.123366],[1408752000000, 2.171412],[1408838400000, 2.171412],[1408924800000, 2.171412],[1409011200000, 2.171412],[1409097600000, 2.211914],[1409184000000, 2.249567],[1409270400000, 2.171120],[1409356800000, 2.199288]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });