$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1543622400000,32.0582],[1543708800000,32.0582],[1543795200000,32.0582],[1543881600000,31.9253],[1543968000000,32.0889],[1544054400000,31.7636],[1544140800000,31.6461],[1544227200000,31.639],[1544313600000,31.639],[1544400000000,31.639],[1544486400000,31.735],[1544572800000,31.5348],[1544659200000,31.5511],[1544745600000,31.6876],[1544832000000,31.4142],[1544918400000,31.4142],[1545004800000,31.4142],[1545091200000,31.6256],[1545177600000,31.6826],[1545264000000,31.6112],[1545350400000,31.5783],[1545436800000,31.3131],[1545523200000,31.3131],[1545609600000,31.3131],[1545696000000,31.3131],[1545782400000,31.3131],[1545868800000,31.1071],[1545955200000,31.2355],[1546041600000,31.7141],[1546128000000,31.7141],[1546214400000,31.7141]], 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, 32.058238],[1543622400000, 32.058238],[1543708800000, 32.058238],[1543795200000, 32.058238],[1543881600000, 31.925347],[1543968000000, 32.088869],[1544054400000, 31.763560],[1544140800000, 31.646099],[1544227200000, 31.638950],[1544313600000, 31.638950],[1544400000000, 31.638950],[1544486400000, 31.735021],[1544572800000, 31.534810],[1544659200000, 31.551110],[1544745600000, 31.687573],[1544832000000, 31.414193],[1544918400000, 31.414193],[1545004800000, 31.414193],[1545091200000, 31.625606],[1545177600000, 31.682605],[1545264000000, 31.611245],[1545350400000, 31.578278],[1545436800000, 31.313092],[1545523200000, 31.313092],[1545609600000, 31.313092],[1545696000000, 31.313092],[1545782400000, 31.313092],[1545868800000, 31.107093],[1545955200000, 31.235530],[1546041600000, 31.714138],[1546128000000, 31.714138],[1546214400000, 31.714138]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });