$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1543622400000,0.075957],[1543708800000,0.075957],[1543795200000,0.075957],[1543881600000,0.075823],[1543968000000,0.075783],[1544054400000,0.075244],[1544140800000,0.075354],[1544227200000,0.075101],[1544313600000,0.075101],[1544400000000,0.075101],[1544486400000,0.075205],[1544572800000,0.074789],[1544659200000,0.075135],[1544745600000,0.075308],[1544832000000,0.07497],[1544918400000,0.07497],[1545004800000,0.07497],[1545091200000,0.075102],[1545177600000,0.074999],[1545264000000,0.07441],[1545350400000,0.074379],[1545436800000,0.073876],[1545523200000,0.073876],[1545609600000,0.073876],[1545696000000,0.073876],[1545782400000,0.073876],[1545868800000,0.072994],[1545955200000,0.073184],[1546041600000,0.07278],[1546128000000,0.07278],[1546214400000,0.07278]], 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, 0.075957],[1543622400000, 0.075957],[1543708800000, 0.075957],[1543795200000, 0.075957],[1543881600000, 0.075823],[1543968000000, 0.075783],[1544054400000, 0.075244],[1544140800000, 0.075354],[1544227200000, 0.075101],[1544313600000, 0.075101],[1544400000000, 0.075101],[1544486400000, 0.075205],[1544572800000, 0.074789],[1544659200000, 0.075135],[1544745600000, 0.075308],[1544832000000, 0.074970],[1544918400000, 0.074970],[1545004800000, 0.074970],[1545091200000, 0.075102],[1545177600000, 0.074999],[1545264000000, 0.074410],[1545350400000, 0.074379],[1545436800000, 0.073876],[1545523200000, 0.073876],[1545609600000, 0.073876],[1545696000000, 0.073876],[1545782400000, 0.073876],[1545868800000, 0.072994],[1545955200000, 0.073184],[1546041600000, 0.072780],[1546128000000, 0.072780],[1546214400000, 0.072780]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });