$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1543622400000,20.5964],[1543708800000,20.5964],[1543795200000,20.5964],[1543881600000,20.7929],[1543968000000,20.7681],[1544054400000,20.4018],[1544140800000,20.0991],[1544227200000,20.0678],[1544313600000,20.0678],[1544400000000,20.0678],[1544486400000,20.0322],[1544572800000,19.9866],[1544659200000,20.0554],[1544745600000,20.146],[1544832000000,19.9417],[1544918400000,19.9417],[1545004800000,19.9417],[1545091200000,20.0149],[1545177600000,20.0396],[1545264000000,19.9076],[1545350400000,19.6749],[1545436800000,19.4721],[1545523200000,19.4721],[1545609600000,19.4721],[1545696000000,19.4721],[1545782400000,19.4721],[1545868800000,19.2185],[1545955200000,19.3277],[1546041600000,19.5585],[1546128000000,19.5585],[1546214400000,19.5585]], 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, 20.596362],[1543622400000, 20.596362],[1543708800000, 20.596362],[1543795200000, 20.596362],[1543881600000, 20.792853],[1543968000000, 20.768150],[1544054400000, 20.401798],[1544140800000, 20.099142],[1544227200000, 20.067836],[1544313600000, 20.067836],[1544400000000, 20.067836],[1544486400000, 20.032206],[1544572800000, 19.986570],[1544659200000, 20.055371],[1544745600000, 20.145955],[1544832000000, 19.941721],[1544918400000, 19.941721],[1545004800000, 19.941721],[1545091200000, 20.014939],[1545177600000, 20.039598],[1545264000000, 19.907579],[1545350400000, 19.674940],[1545436800000, 19.472105],[1545523200000, 19.472105],[1545609600000, 19.472105],[1545696000000, 19.472105],[1545782400000, 19.472105],[1545868800000, 19.218518],[1545955200000, 19.327721],[1546041600000, 19.558518],[1546128000000, 19.558518],[1546214400000, 19.558518]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });