$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1467331200000,18.4292],[1467417600000,18.4763],[1467504000000,18.4763],[1467590400000,18.4763],[1467676800000,18.4401],[1467763200000,18.4131],[1467849600000,18.3697],[1467936000000,18.4109],[1468022400000,18.4489],[1468108800000,18.4489],[1468195200000,18.4489],[1468281600000,18.4166],[1468368000000,18.4446],[1468454400000,18.4407],[1468540800000,18.4719],[1468627200000,18.4516],[1468713600000,18.4516],[1468800000000,18.4516],[1468886400000,18.4389],[1468972800000,18.3517],[1469059200000,18.2629],[1469145600000,18.3075],[1469232000000,18.2995],[1469318400000,18.2995],[1469404800000,18.2995],[1469491200000,18.2159],[1469577600000,18.2622],[1469664000000,18.2732],[1469750400000,null],[1469836800000,18.36],[1469923200000,18.36]], 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, 18.429166],[1467331200000, 18.429166],[1467417600000, 18.476263],[1467504000000, 18.476263],[1467590400000, 18.476263],[1467676800000, 18.440099],[1467763200000, 18.413085],[1467849600000, 18.369665],[1467936000000, 18.410872],[1468022400000, 18.448877],[1468108800000, 18.448877],[1468195200000, 18.448877],[1468281600000, 18.416551],[1468368000000, 18.444590],[1468454400000, 18.440668],[1468540800000, 18.471860],[1468627200000, 18.451592],[1468713600000, 18.451592],[1468800000000, 18.451592],[1468886400000, 18.438915],[1468972800000, 18.351712],[1469059200000, 18.262940],[1469145600000, 18.307516],[1469232000000, 18.299548],[1469318400000, 18.299548],[1469404800000, 18.299548],[1469491200000, 18.215941],[1469577600000, 18.262211],[1469664000000, 18.273182],[1469836800000, 18.359982],[1469923200000, 18.359982]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });