$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1512086400000,20.5485],[1512172800000,20.4894],[1512259200000,20.4894],[1512345600000,20.4894],[1512432000000,20.7193],[1512518400000,20.7463],[1512604800000,20.5814],[1512691200000,20.3819],[1512777600000,20.3789],[1512864000000,20.3789],[1512950400000,20.3789],[1513036800000,20.4219],[1513123200000,20.5756],[1513209600000,20.6419],[1513296000000,21.0116],[1513382400000,21.2105],[1513468800000,21.2105],[1513555200000,21.2105],[1513641600000,21.3598],[1513728000000,21.3992],[1513814400000,21.3918],[1513900800000,21.3801],[1513987200000,21.572],[1514073600000,21.572],[1514160000000,21.572],[1514246400000,21.572],[1514332800000,21.5671],[1514419200000,21.7059],[1514505600000,21.8496],[1514592000000,21.8496],[1514678400000,21.8496]], 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: [[1512086400000, 20.548544],[1512086400000, 20.548544],[1512172800000, 20.489428],[1512259200000, 20.489428],[1512345600000, 20.489428],[1512432000000, 20.719265],[1512518400000, 20.746307],[1512604800000, 20.581358],[1512691200000, 20.381891],[1512777600000, 20.378869],[1512864000000, 20.378869],[1512950400000, 20.378869],[1513036800000, 20.421906],[1513123200000, 20.575628],[1513209600000, 20.641893],[1513296000000, 21.011618],[1513382400000, 21.210477],[1513468800000, 21.210477],[1513555200000, 21.210477],[1513641600000, 21.359766],[1513728000000, 21.399203],[1513814400000, 21.391847],[1513900800000, 21.380075],[1513987200000, 21.571967],[1514073600000, 21.571967],[1514160000000, 21.571967],[1514246400000, 21.571967],[1514332800000, 21.567063],[1514419200000, 21.705863],[1514505600000, 21.849592],[1514592000000, 21.849592],[1514678400000, 21.849592]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });