$(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: [[1554076800000,20.3796],[1554163200000,20.3596],[1554249600000,20.2501],[1554336000000,20.347],[1554422400000,20.2282],[1554508800000,20.0062],[1554595200000,20.0062],[1554681600000,20.0062],[1554768000000,19.9202],[1554854400000,20.0916],[1554940800000,20.0828],[1555027200000,20.059],[1555113600000,20.0522],[1555200000000,20.0522],[1555286400000,20.0522],[1555372800000,20.1397],[1555459200000,19.9931],[1555545600000,20.013],[1555632000000,20.0414],[1555718400000,20.0536],[1555804800000,20.0536],[1555891200000,20.0536],[1555977600000,19.9949],[1556064000000,19.9314],[1556150400000,19.7702],[1556236800000,19.7089],[1556323200000,19.6367],[1556409600000,19.6367],[1556496000000,19.6367],[1556582400000,19.6367]], 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: [[1554076800000, 20.379618],[1554076800000, 20.379618],[1554163200000, 20.359628],[1554249600000, 20.250055],[1554336000000, 20.347036],[1554422400000, 20.228210],[1554508800000, 20.006179],[1554595200000, 20.006179],[1554681600000, 20.006179],[1554768000000, 19.920222],[1554854400000, 20.091557],[1554940800000, 20.082824],[1555027200000, 20.059010],[1555113600000, 20.052231],[1555200000000, 20.052231],[1555286400000, 20.052231],[1555372800000, 20.139697],[1555459200000, 19.993074],[1555545600000, 20.013025],[1555632000000, 20.041395],[1555718400000, 20.053579],[1555804800000, 20.053579],[1555891200000, 20.053579],[1555977600000, 19.994884],[1556064000000, 19.931371],[1556150400000, 19.770156],[1556236800000, 19.708899],[1556323200000, 19.636727],[1556409600000, 19.636727],[1556496000000, 19.636727],[1556582400000, 19.636727]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });