$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1556668800000,34.1607],[1556755200000,34.1607],[1556841600000,34.6514],[1556928000000,34.4337],[1557014400000,34.4337],[1557100800000,34.4337],[1557187200000,34.7172],[1557273600000,34.3993],[1557360000000,34.1538],[1557446400000,34.1538],[1557532800000,34.1208],[1557619200000,34.1208],[1557705600000,34.1208],[1557792000000,34.0062],[1557878400000,33.867],[1557964800000,33.9715],[1558051200000,33.7422],[1558137600000,33.6304],[1558224000000,33.6304],[1558310400000,33.6304],[1558396800000,33.3951],[1558483200000,33.2657],[1558569600000,33.2861],[1558656000000,33.2978],[1558742400000,33.5349],[1558828800000,33.5349],[1558915200000,33.5349],[1559001600000,33.414],[1559088000000,33.4421],[1559174400000,33.741],[1559260800000,33.9313]], 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, 34.160718],[1556668800000, 34.160718],[1556755200000, 34.160718],[1556841600000, 34.651437],[1556928000000, 34.433705],[1557014400000, 34.433705],[1557100800000, 34.433705],[1557187200000, 34.717188],[1557273600000, 34.399337],[1557360000000, 34.153837],[1557446400000, 34.153837],[1557532800000, 34.120824],[1557619200000, 34.120824],[1557705600000, 34.120824],[1557792000000, 34.006151],[1557878400000, 33.866960],[1557964800000, 33.971529],[1558051200000, 33.742229],[1558137600000, 33.630407],[1558224000000, 33.630407],[1558310400000, 33.630407],[1558396800000, 33.395084],[1558483200000, 33.265731],[1558569600000, 33.286110],[1558656000000, 33.297800],[1558742400000, 33.534881],[1558828800000, 33.534881],[1558915200000, 33.534881],[1559001600000, 33.413997],[1559088000000, 33.442094],[1559174400000, 33.740974],[1559260800000, 33.931279]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });