$(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: [[1462060800000,3.11846],[1462147200000,3.11846],[1462233600000,3.11846],[1462320000000,3.11846],[1462406400000,3.10322],[1462492800000,3.09063],[1462579200000,3.0748],[1462665600000,3.0748],[1462752000000,3.0748],[1462838400000,3.0748],[1462924800000,3.06465],[1463011200000,3.0911],[1463097600000,3.12271],[1463184000000,3.1165],[1463270400000,3.1165],[1463356800000,3.1165],[1463443200000,3.11323],[1463529600000,3.09044],[1463616000000,3.07029],[1463702400000,3.02193],[1463788800000,3.02861],[1463875200000,null],[1463961600000,3.02861],[1464048000000,3.00842],[1464134400000,3.00673],[1464220800000,3.0115],[1464307200000,3.03143],[1464393600000,3.02434],[1464480000000,3.02434],[1464566400000,3.02434],[1464652800000,3.01343]], 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: [[1462060800000, 3.118458],[1462060800000, 3.118458],[1462147200000, 3.118458],[1462233600000, 3.118458],[1462320000000, 3.118458],[1462406400000, 3.103219],[1462492800000, 3.090630],[1462579200000, 3.074801],[1462665600000, 3.074801],[1462752000000, 3.074801],[1462838400000, 3.074801],[1462924800000, 3.064650],[1463011200000, 3.091099],[1463097600000, 3.122715],[1463184000000, 3.116503],[1463270400000, 3.116503],[1463356800000, 3.116503],[1463443200000, 3.113232],[1463529600000, 3.090437],[1463616000000, 3.070285],[1463702400000, 3.021929],[1463788800000, 3.028608],[1463961600000, 3.028608],[1464048000000, 3.008416],[1464134400000, 3.006730],[1464220800000, 3.011501],[1464307200000, 3.031434],[1464393600000, 3.024339],[1464480000000, 3.024339],[1464566400000, 3.024339],[1464652800000, 3.013428]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });