$(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: [[1543622400000,35.993],[1543708800000,35.993],[1543795200000,35.993],[1543881600000,35.8108],[1543968000000,36.0314],[1544054400000,35.7356],[1544140800000,35.5854],[1544227200000,35.5155],[1544313600000,35.5155],[1544400000000,35.5155],[1544486400000,35.1654],[1544572800000,34.9501],[1544659200000,35.0043],[1544745600000,35.268],[1544832000000,34.9688],[1544918400000,34.9688],[1545004800000,34.9688],[1545091200000,35.1826],[1545177600000,35.3147],[1545264000000,34.9999],[1545350400000,34.9569],[1545436800000,34.7094],[1545523200000,34.7094],[1545609600000,34.7094],[1545696000000,34.7094],[1545782400000,34.7094],[1545868800000,34.5488],[1545955200000,34.678],[1546041600000,35.1314],[1546128000000,35.1314],[1546214400000,35.1314]], 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: [[1543622400000, 35.992991],[1543622400000, 35.992991],[1543708800000, 35.992991],[1543795200000, 35.992991],[1543881600000, 35.810821],[1543968000000, 36.031428],[1544054400000, 35.735568],[1544140800000, 35.585403],[1544227200000, 35.515463],[1544313600000, 35.515463],[1544400000000, 35.515463],[1544486400000, 35.165407],[1544572800000, 34.950138],[1544659200000, 35.004282],[1544745600000, 35.267978],[1544832000000, 34.968769],[1544918400000, 34.968769],[1545004800000, 34.968769],[1545091200000, 35.182563],[1545177600000, 35.314724],[1545264000000, 34.999939],[1545350400000, 34.956859],[1545436800000, 34.709408],[1545523200000, 34.709408],[1545609600000, 34.709408],[1545696000000, 34.709408],[1545782400000, 34.709408],[1545868800000, 34.548849],[1545955200000, 34.678016],[1546041600000, 35.131366],[1546128000000, 35.131366],[1546214400000, 35.131366]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });