$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1554076800000,27.2091],[1554163200000,27.1909],[1554249600000,26.9742],[1554336000000,27.0811],[1554422400000,27.022],[1554508800000,26.7687],[1554595200000,26.7687],[1554681600000,26.7687],[1554768000000,26.6441],[1554854400000,26.6961],[1554940800000,26.7652],[1555027200000,26.8314],[1555113600000,26.7139],[1555200000000,26.7139],[1555286400000,26.7139],[1555372800000,26.8102],[1555459200000,26.7223],[1555545600000,26.6876],[1555632000000,26.8377],[1555718400000,26.854],[1555804800000,26.854],[1555891200000,26.854],[1555977600000,26.7754],[1556064000000,26.688],[1556150400000,26.5942],[1556236800000,26.6193],[1556323200000,26.4927],[1556409600000,26.4927],[1556496000000,26.4927],[1556582400000,26.4927]], 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, 27.209103],[1554076800000, 27.209103],[1554163200000, 27.190867],[1554249600000, 26.974158],[1554336000000, 27.081121],[1554422400000, 27.022033],[1554508800000, 26.768706],[1554595200000, 26.768706],[1554681600000, 26.768706],[1554768000000, 26.644138],[1554854400000, 26.696098],[1554940800000, 26.765228],[1555027200000, 26.831419],[1555113600000, 26.713872],[1555200000000, 26.713872],[1555286400000, 26.713872],[1555372800000, 26.810204],[1555459200000, 26.722277],[1555545600000, 26.687575],[1555632000000, 26.837655],[1555718400000, 26.853970],[1555804800000, 26.853970],[1555891200000, 26.853970],[1555977600000, 26.775371],[1556064000000, 26.688008],[1556150400000, 26.594202],[1556236800000, 26.619328],[1556323200000, 26.492737],[1556409600000, 26.492737],[1556496000000, 26.492737],[1556582400000, 26.492737]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });