$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1561939200000,19.9386],[1562025600000,20.0066],[1562112000000,19.9642],[1562198400000,19.8813],[1562284800000,19.8],[1562371200000,19.6785],[1562457600000,19.6785],[1562544000000,19.6785],[1562630400000,19.6099],[1562716800000,19.4211],[1562803200000,19.5989],[1562889600000,19.7607],[1562976000000,19.7644],[1563062400000,19.7644],[1563148800000,19.7644],[1563235200000,19.7545],[1563321600000,19.8233],[1563408000000,19.7928],[1563494400000,19.9285],[1563580800000,19.775],[1563667200000,19.775],[1563753600000,19.775],[1563840000000,19.6105],[1563926400000,19.4925],[1564012800000,19.4333],[1564099200000,19.4155],[1564185600000,19.3016],[1564272000000,19.3016],[1564358400000,19.3016],[1564444800000,19.1727],[1564531200000,19.0459]], 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: [[1561939200000, 19.938583],[1561939200000, 19.938583],[1562025600000, 20.006558],[1562112000000, 19.964185],[1562198400000, 19.881330],[1562284800000, 19.799985],[1562371200000, 19.678489],[1562457600000, 19.678489],[1562544000000, 19.678489],[1562630400000, 19.609905],[1562716800000, 19.421069],[1562803200000, 19.598948],[1562889600000, 19.760688],[1562976000000, 19.764359],[1563062400000, 19.764359],[1563148800000, 19.764359],[1563235200000, 19.754456],[1563321600000, 19.823347],[1563408000000, 19.792774],[1563494400000, 19.928534],[1563580800000, 19.775030],[1563667200000, 19.775030],[1563753600000, 19.775030],[1563840000000, 19.610467],[1563926400000, 19.492513],[1564012800000, 19.433348],[1564099200000, 19.415513],[1564185600000, 19.301614],[1564272000000, 19.301614],[1564358400000, 19.301614],[1564444800000, 19.172650],[1564531200000, 19.045936]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });