$(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: [[1280620800000,1.29496],[1280707200000,1.29496],[1280793600000,1.31274],[1280880000000,1.32379],[1280966400000,1.32129],[1281052800000,1.32081],[1281139200000,1.31972],[1281225600000,null],[1281312000000,1.31972],[1281398400000,1.32404],[1281484800000,1.31197],[1281571200000,1.2891],[1281657600000,1.26704],[1281744000000,1.27409],[1281830400000,1.27409],[1281916800000,1.27409],[1282003200000,1.27183],[1282089600000,1.28332],[1282176000000,1.2815],[1282262400000,1.28292],[1282348800000,1.25934],[1282435200000,null],[1282521600000,null],[1282608000000,1.25929],[1282694400000,1.25929],[1282780800000,1.2414],[1282867200000,1.25122],[1282953600000,1.25672],[1283040000000,1.25672],[1283126400000,1.25672],[1283212800000,1.25742]], 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: [[1280620800000, 1.294957],[1280620800000, 1.294957],[1280707200000, 1.294957],[1280793600000, 1.312739],[1280880000000, 1.323794],[1280966400000, 1.321287],[1281052800000, 1.320810],[1281139200000, 1.319724],[1281312000000, 1.319724],[1281398400000, 1.324041],[1281484800000, 1.311970],[1281571200000, 1.289101],[1281657600000, 1.267036],[1281744000000, 1.274087],[1281830400000, 1.274087],[1281916800000, 1.274087],[1282003200000, 1.271830],[1282089600000, 1.283316],[1282176000000, 1.281503],[1282262400000, 1.282917],[1282348800000, 1.259337],[1282608000000, 1.259289],[1282694400000, 1.259289],[1282780800000, 1.241397],[1282867200000, 1.251222],[1282953600000, 1.256720],[1283040000000, 1.256720],[1283126400000, 1.256720],[1283212800000, 1.257420]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });