$(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: [[1546300800000,20.327],[1546387200000,20.327],[1546473600000,20.327],[1546560000000,20.2834],[1546646400000,20.6139],[1546732800000,20.6139],[1546819200000,20.6139],[1546905600000,20.6139],[1546992000000,21.0805],[1547078400000,21.2325],[1547164800000,21.382],[1547251200000,21.2959],[1547337600000,21.2959],[1547424000000,21.2959],[1547510400000,21.1052],[1547596800000,21.2338],[1547683200000,21.1237],[1547769600000,21.083],[1547856000000,21.0808],[1547942400000,21.0808],[1548028800000,21.0808],[1548115200000,21.0063],[1548201600000,20.9366],[1548288000000,20.8107],[1548374400000,20.7867],[1548460800000,20.892],[1548547200000,20.892],[1548633600000,20.892],[1548720000000,20.9929],[1548806400000,20.9492],[1548892800000,20.9925]], 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: [[1546300800000, 20.326969],[1546300800000, 20.326969],[1546387200000, 20.326969],[1546473600000, 20.326969],[1546560000000, 20.283431],[1546646400000, 20.613928],[1546732800000, 20.613928],[1546819200000, 20.613928],[1546905600000, 20.613928],[1546992000000, 21.080456],[1547078400000, 21.232470],[1547164800000, 21.381952],[1547251200000, 21.295879],[1547337600000, 21.295879],[1547424000000, 21.295879],[1547510400000, 21.105180],[1547596800000, 21.233841],[1547683200000, 21.123689],[1547769600000, 21.083020],[1547856000000, 21.080841],[1547942400000, 21.080841],[1548028800000, 21.080841],[1548115200000, 21.006282],[1548201600000, 20.936630],[1548288000000, 20.810739],[1548374400000, 20.786742],[1548460800000, 20.891965],[1548547200000, 20.891965],[1548633600000, 20.891965],[1548720000000, 20.992876],[1548806400000, 20.949182],[1548892800000, 20.992515]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });