$(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: [[1514764800000,3.39469],[1514851200000,3.39469],[1514937600000,3.39469],[1515024000000,3.44138],[1515110400000,3.46097],[1515196800000,3.48713],[1515283200000,3.48713],[1515369600000,3.48713],[1515456000000,3.48713],[1515542400000,3.47951],[1515628800000,3.5223],[1515715200000,3.5337],[1515801600000,3.58577],[1515888000000,3.58577],[1515974400000,3.58577],[1516060800000,3.62664],[1516147200000,3.63855],[1516233600000,3.63555],[1516320000000,3.66713],[1516406400000,3.67292],[1516492800000,3.67292],[1516579200000,3.67292],[1516665600000,3.67284],[1516752000000,3.66845],[1516838400000,3.7034],[1516924800000,3.72053],[1517011200000,3.71158],[1517097600000,3.71158],[1517184000000,3.71158],[1517270400000,3.65956],[1517356800000,3.63803]], 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: [[1514764800000, 3.394692],[1514764800000, 3.394692],[1514851200000, 3.394692],[1514937600000, 3.394692],[1515024000000, 3.441379],[1515110400000, 3.460972],[1515196800000, 3.487129],[1515283200000, 3.487129],[1515369600000, 3.487129],[1515456000000, 3.487129],[1515542400000, 3.479513],[1515628800000, 3.522303],[1515715200000, 3.533696],[1515801600000, 3.585766],[1515888000000, 3.585766],[1515974400000, 3.585766],[1516060800000, 3.626641],[1516147200000, 3.638545],[1516233600000, 3.635552],[1516320000000, 3.667134],[1516406400000, 3.672924],[1516492800000, 3.672924],[1516579200000, 3.672924],[1516665600000, 3.672837],[1516752000000, 3.668450],[1516838400000, 3.703402],[1516924800000, 3.720527],[1517011200000, 3.711577],[1517097600000, 3.711577],[1517184000000, 3.711577],[1517270400000, 3.659560],[1517356800000, 3.638026]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });