$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1467331200000,18.4637],[1467417600000,18.5694],[1467504000000,18.5694],[1467590400000,18.5694],[1467676800000,18.6857],[1467763200000,18.5836],[1467849600000,18.5644],[1467936000000,18.657],[1468022400000,18.6643],[1468108800000,18.6643],[1468195200000,18.6643],[1468281600000,18.7857],[1468368000000,18.9612],[1468454400000,18.931],[1468540800000,18.9657],[1468627200000,18.9885],[1468713600000,18.9885],[1468800000000,18.9885],[1468886400000,18.8734],[1468972800000,18.5935],[1469059200000,18.5733],[1469145600000,18.5826],[1469232000000,18.5694],[1469318400000,18.5694],[1469404800000,18.5694],[1469491200000,18.5612],[1469577600000,18.67],[1469664000000,18.5352],[1469750400000,null],[1469836800000,18.6494],[1469923200000,18.6494]], 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.463730],[1467331200000, 18.463730],[1467417600000, 18.569365],[1467504000000, 18.569365],[1467590400000, 18.569365],[1467676800000, 18.685684],[1467763200000, 18.583600],[1467849600000, 18.564375],[1467936000000, 18.656983],[1468022400000, 18.664288],[1468108800000, 18.664288],[1468195200000, 18.664288],[1468281600000, 18.785714],[1468368000000, 18.961170],[1468454400000, 18.930997],[1468540800000, 18.965692],[1468627200000, 18.988462],[1468713600000, 18.988462],[1468800000000, 18.988462],[1468886400000, 18.873383],[1468972800000, 18.593460],[1469059200000, 18.573281],[1469145600000, 18.582565],[1469232000000, 18.569372],[1469318400000, 18.569372],[1469404800000, 18.569372],[1469491200000, 18.561231],[1469577600000, 18.670011],[1469664000000, 18.535203],[1469836800000, 18.649379],[1469923200000, 18.649379]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });