$(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: [[1559347200000,19.8119],[1559433600000,19.8119],[1559520000000,19.8119],[1559606400000,19.9689],[1559692800000,20.2445],[1559779200000,20.1163],[1559865600000,19.9969],[1559952000000,19.9066],[1560038400000,19.9066],[1560124800000,19.9066],[1560211200000,19.8656],[1560297600000,19.8443],[1560384000000,19.8518],[1560470400000,19.8537],[1560556800000,19.8191],[1560643200000,19.8191],[1560729600000,19.8191],[1560816000000,19.8191],[1560902400000,19.6595],[1560988800000,19.6883],[1561075200000,20.0344],[1561161600000,19.911],[1561248000000,19.911],[1561334400000,19.911],[1561420800000,19.8551],[1561507200000,19.8829],[1561593600000,19.8904],[1561680000000,19.9386],[1561766400000,19.9386],[1561852800000,19.9386]], 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: [[1559347200000, 19.811889],[1559347200000, 19.811889],[1559433600000, 19.811889],[1559520000000, 19.811889],[1559606400000, 19.968858],[1559692800000, 20.244508],[1559779200000, 20.116265],[1559865600000, 19.996922],[1559952000000, 19.906617],[1560038400000, 19.906617],[1560124800000, 19.906617],[1560211200000, 19.865644],[1560297600000, 19.844295],[1560384000000, 19.851825],[1560470400000, 19.853699],[1560556800000, 19.819098],[1560643200000, 19.819098],[1560729600000, 19.819098],[1560816000000, 19.819098],[1560902400000, 19.659519],[1560988800000, 19.688326],[1561075200000, 20.034397],[1561161600000, 19.910957],[1561248000000, 19.910957],[1561334400000, 19.910957],[1561420800000, 19.855126],[1561507200000, 19.882899],[1561593600000, 19.890442],[1561680000000, 19.938583],[1561766400000, 19.938583],[1561852800000, 19.938583]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });