$(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: [[1556668800000,19.6367],[1556755200000,19.6367],[1556841600000,19.7663],[1556928000000,19.6677],[1557014400000,19.6677],[1557100800000,19.6677],[1557187200000,19.6574],[1557273600000,19.5561],[1557360000000,19.5069],[1557446400000,19.5069],[1557532800000,19.4483],[1557619200000,19.4483],[1557705600000,19.4483],[1557792000000,19.4247],[1557878400000,19.4288],[1557964800000,19.5649],[1558051200000,19.6236],[1558137600000,19.5426],[1558224000000,19.5426],[1558310400000,19.5426],[1558396800000,19.5072],[1558483200000,19.4735],[1558569600000,19.6529],[1558656000000,19.5569],[1558742400000,19.6754],[1558828800000,19.6754],[1558915200000,19.6754],[1559001600000,19.5734],[1559088000000,19.6097],[1559174400000,19.7597],[1559260800000,19.9081]], 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: [[1556668800000, 19.636727],[1556668800000, 19.636727],[1556755200000, 19.636727],[1556841600000, 19.766317],[1556928000000, 19.667724],[1557014400000, 19.667724],[1557100800000, 19.667724],[1557187200000, 19.657357],[1557273600000, 19.556132],[1557360000000, 19.506930],[1557446400000, 19.506930],[1557532800000, 19.448329],[1557619200000, 19.448329],[1557705600000, 19.448329],[1557792000000, 19.424695],[1557878400000, 19.428751],[1557964800000, 19.564896],[1558051200000, 19.623622],[1558137600000, 19.542627],[1558224000000, 19.542627],[1558310400000, 19.542627],[1558396800000, 19.507182],[1558483200000, 19.473544],[1558569600000, 19.652875],[1558656000000, 19.556908],[1558742400000, 19.675371],[1558828800000, 19.675371],[1558915200000, 19.675371],[1559001600000, 19.573401],[1559088000000, 19.609702],[1559174400000, 19.759691],[1559260800000, 19.908126]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });