$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1464739200000,28.043],[1464825600000,28.044],[1464912000000,28.0273],[1464998400000,27.8873],[1465084800000,27.8873],[1465171200000,27.8873],[1465257600000,28.3562],[1465344000000,28.3265],[1465430400000,28.3814],[1465516800000,28.36],[1465603200000,28.2773],[1465689600000,28.2773],[1465776000000,28.2773],[1465862400000,28.1347],[1465948800000,27.967],[1466035200000,null],[1466121600000,27.8284],[1466208000000,28.0325],[1466294400000,28.0325],[1466380800000,28.0325],[1466467200000,28.0325],[1466553600000,28.1634],[1466640000000,28.0925],[1466726400000,28.3392],[1466812800000,27.5249],[1466899200000,27.5249],[1466985600000,27.5249],[1467072000000,27.5249],[1467158400000,27.5249],[1467244800000,27.5635]], 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: [[1464739200000, 28.042982],[1464739200000, 28.042982],[1464825600000, 28.044047],[1464912000000, 28.027290],[1464998400000, 27.887311],[1465084800000, 27.887311],[1465171200000, 27.887311],[1465257600000, 28.356223],[1465344000000, 28.326514],[1465430400000, 28.381421],[1465516800000, 28.360037],[1465603200000, 28.277344],[1465689600000, 28.277344],[1465776000000, 28.277344],[1465862400000, 28.134710],[1465948800000, 27.967026],[1466121600000, 27.828447],[1466208000000, 28.032460],[1466294400000, 28.032460],[1466380800000, 28.032460],[1466467200000, 28.032460],[1466553600000, 28.163440],[1466640000000, 28.092501],[1466726400000, 28.339168],[1466812800000, 27.524899],[1466899200000, 27.524899],[1466985600000, 27.524899],[1467072000000, 27.524899],[1467158400000, 27.524899],[1467244800000, 27.563540]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });