$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1467331200000,3.73731],[1467417600000,3.72936],[1467504000000,3.72936],[1467590400000,3.72936],[1467676800000,3.72359],[1467763200000,3.72327],[1467849600000,3.71498],[1467936000000,3.71331],[1468022400000,3.7149],[1468108800000,3.7149],[1468195200000,3.7149],[1468281600000,3.7144],[1468368000000,3.71613],[1468454400000,3.70994],[1468540800000,3.70988],[1468627200000,3.71265],[1468713600000,3.71265],[1468800000000,3.71265],[1468886400000,3.70824],[1468972800000,3.70661],[1469059200000,3.71764],[1469145600000,3.71879],[1469232000000,3.71817],[1469318400000,3.71817],[1469404800000,3.71817],[1469491200000,3.71093],[1469577600000,3.71558],[1469664000000,3.72039],[1469750400000,null],[1469836800000,3.72998],[1469923200000,3.72998]], 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, 3.737306],[1467331200000, 3.737306],[1467417600000, 3.729358],[1467504000000, 3.729358],[1467590400000, 3.729358],[1467676800000, 3.723594],[1467763200000, 3.723266],[1467849600000, 3.714982],[1467936000000, 3.713305],[1468022400000, 3.714902],[1468108800000, 3.714902],[1468195200000, 3.714902],[1468281600000, 3.714401],[1468368000000, 3.716132],[1468454400000, 3.709941],[1468540800000, 3.709877],[1468627200000, 3.712652],[1468713600000, 3.712652],[1468800000000, 3.712652],[1468886400000, 3.708241],[1468972800000, 3.706611],[1469059200000, 3.717638],[1469145600000, 3.718788],[1469232000000, 3.718169],[1469318400000, 3.718169],[1469404800000, 3.718169],[1469491200000, 3.710930],[1469577600000, 3.715576],[1469664000000, 3.720390],[1469836800000, 3.729977],[1469923200000, 3.729977]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });