$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1554076800000,20.093],[1554163200000,20.0826],[1554249600000,19.9045],[1554336000000,20.0193],[1554422400000,19.9618],[1554508800000,19.7629],[1554595200000,19.7629],[1554681600000,19.7629],[1554768000000,19.6575],[1554854400000,19.7346],[1554940800000,19.7854],[1555027200000,19.8131],[1555113600000,19.7433],[1555200000000,19.7433],[1555286400000,19.7433],[1555372800000,19.8251],[1555459200000,19.7422],[1555545600000,19.7302],[1555632000000,19.797],[1555718400000,19.809],[1555804800000,19.809],[1555891200000,19.809],[1555977600000,19.751],[1556064000000,19.6675],[1556150400000,19.5664],[1556236800000,19.4935],[1556323200000,19.4362],[1556409600000,19.4362],[1556496000000,19.4362],[1556582400000,19.4362]], 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: [[1554076800000, 20.092959],[1554076800000, 20.092959],[1554163200000, 20.082599],[1554249600000, 19.904505],[1554336000000, 20.019268],[1554422400000, 19.961822],[1554508800000, 19.762923],[1554595200000, 19.762923],[1554681600000, 19.762923],[1554768000000, 19.657546],[1554854400000, 19.734638],[1554940800000, 19.785359],[1555027200000, 19.813105],[1555113600000, 19.743292],[1555200000000, 19.743292],[1555286400000, 19.743292],[1555372800000, 19.825076],[1555459200000, 19.742213],[1555545600000, 19.730229],[1555632000000, 19.796972],[1555718400000, 19.809007],[1555804800000, 19.809007],[1555891200000, 19.809007],[1555977600000, 19.751028],[1556064000000, 19.667518],[1556150400000, 19.566420],[1556236800000, 19.493501],[1556323200000, 19.436154],[1556409600000, 19.436154],[1556496000000, 19.436154],[1556582400000, 19.436154]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });