$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1467331200000,1.25035],[1467417600000,1.25],[1467504000000,1.25],[1467590400000,1.25],[1467676800000,1.25065],[1467763200000,1.25243],[1467849600000,1.25209],[1467936000000,1.25127],[1468022400000,1.25191],[1468108800000,1.25191],[1468195200000,1.25191],[1468281600000,1.25502],[1468368000000,1.25285],[1468454400000,1.25359],[1468540800000,1.25241],[1468627200000,1.25305],[1468713600000,1.25305],[1468800000000,1.25305],[1468886400000,1.2567],[1468972800000,1.25405],[1469059200000,1.25361],[1469145600000,1.25332],[1469232000000,1.25158],[1469318400000,1.25158],[1469404800000,1.25158],[1469491200000,1.25204],[1469577600000,1.25116],[1469664000000,1.25357],[1469750400000,null],[1469836800000,1.25393],[1469923200000,1.25393]], 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, 1.250354],[1467331200000, 1.250354],[1467417600000, 1.250002],[1467504000000, 1.250002],[1467590400000, 1.250002],[1467676800000, 1.250653],[1467763200000, 1.252435],[1467849600000, 1.252089],[1467936000000, 1.251269],[1468022400000, 1.251913],[1468108800000, 1.251913],[1468195200000, 1.251913],[1468281600000, 1.255017],[1468368000000, 1.252851],[1468454400000, 1.253594],[1468540800000, 1.252413],[1468627200000, 1.253046],[1468713600000, 1.253046],[1468800000000, 1.253046],[1468886400000, 1.256703],[1468972800000, 1.254046],[1469059200000, 1.253605],[1469145600000, 1.253320],[1469232000000, 1.251579],[1469318400000, 1.251579],[1469404800000, 1.251579],[1469491200000, 1.252039],[1469577600000, 1.251161],[1469664000000, 1.253566],[1469836800000, 1.253932],[1469923200000, 1.253932]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });