$(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: [[1467331200000,2.96367],[1467417600000,2.9727],[1467504000000,2.9727],[1467590400000,2.9727],[1467676800000,2.98687],[1467763200000,2.97148],[1467849600000,2.94038],[1467936000000,2.93178],[1468022400000,2.92711],[1468108800000,2.92711],[1468195200000,2.92711],[1468281600000,2.91928],[1468368000000,2.94702],[1468454400000,2.95047],[1468540800000,2.96708],[1468627200000,2.9625],[1468713600000,2.9625],[1468800000000,2.9625],[1468886400000,2.93441],[1468972800000,2.92896],[1469059200000,2.92084],[1469145600000,2.92224],[1469232000000,2.91203],[1469318400000,2.91203],[1469404800000,2.91203],[1469491200000,2.89281],[1469577600000,2.88824],[1469664000000,2.88965],[1469750400000,null],[1469836800000,2.89904],[1469923200000,2.89904]], 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: [[1467331200000, 2.963670],[1467331200000, 2.963670],[1467417600000, 2.972696],[1467504000000, 2.972696],[1467590400000, 2.972696],[1467676800000, 2.986866],[1467763200000, 2.971478],[1467849600000, 2.940380],[1467936000000, 2.931778],[1468022400000, 2.927112],[1468108800000, 2.927112],[1468195200000, 2.927112],[1468281600000, 2.919284],[1468368000000, 2.947023],[1468454400000, 2.950467],[1468540800000, 2.967082],[1468627200000, 2.962496],[1468713600000, 2.962496],[1468800000000, 2.962496],[1468886400000, 2.934408],[1468972800000, 2.928964],[1469059200000, 2.920837],[1469145600000, 2.922243],[1469232000000, 2.912032],[1469318400000, 2.912032],[1469404800000, 2.912032],[1469491200000, 2.892808],[1469577600000, 2.888243],[1469664000000, 2.889651],[1469836800000, 2.899036],[1469923200000, 2.899036]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });