$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1543622400000,28.2701],[1543708800000,28.2701],[1543795200000,28.2701],[1543881600000,28.1951],[1543968000000,28.2771],[1544054400000,28.0399],[1544140800000,27.9955],[1544227200000,28.0015],[1544313600000,28.0015],[1544400000000,28.0015],[1544486400000,28.0965],[1544572800000,28.0359],[1544659200000,27.956],[1544745600000,28.0744],[1544832000000,27.9138],[1544918400000,27.9138],[1545004800000,27.9138],[1545091200000,28.1017],[1545177600000,28.0849],[1545264000000,27.9054],[1545350400000,27.8689],[1545436800000,27.6813],[1545523200000,27.6813],[1545609600000,27.6813],[1545696000000,27.6813],[1545782400000,27.6813],[1545868800000,27.4992],[1545955200000,27.6935],[1546041600000,28.2481],[1546128000000,28.2481],[1546214400000,28.2481]], 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, 28.270051],[1543622400000, 28.270051],[1543708800000, 28.270051],[1543795200000, 28.270051],[1543881600000, 28.195131],[1543968000000, 28.277114],[1544054400000, 28.039866],[1544140800000, 27.995487],[1544227200000, 28.001549],[1544313600000, 28.001549],[1544400000000, 28.001549],[1544486400000, 28.096522],[1544572800000, 28.035927],[1544659200000, 27.955972],[1544745600000, 28.074398],[1544832000000, 27.913802],[1544918400000, 27.913802],[1545004800000, 27.913802],[1545091200000, 28.101658],[1545177600000, 28.084926],[1545264000000, 27.905407],[1545350400000, 27.868925],[1545436800000, 27.681305],[1545523200000, 27.681305],[1545609600000, 27.681305],[1545696000000, 27.681305],[1545782400000, 27.681305],[1545868800000, 27.499198],[1545955200000, 27.693527],[1546041600000, 28.248096],[1546128000000, 28.248096],[1546214400000, 28.248096]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });