$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1512086400000,21.0762],[1512172800000,21.0144],[1512259200000,21.0144],[1512345600000,21.0144],[1512432000000,21.4786],[1512518400000,21.5032],[1512604800000,21.4094],[1512691200000,21.1241],[1512777600000,21.1198],[1512864000000,21.1198],[1512950400000,21.1198],[1513036800000,21.1032],[1513123200000,21.1793],[1513209600000,21.204],[1513296000000,21.3656],[1513382400000,21.6496],[1513468800000,21.6496],[1513555200000,21.6496],[1513641600000,21.6509],[1513728000000,21.6792],[1513814400000,21.6814],[1513900800000,21.756],[1513987200000,22.0032],[1514073600000,22.0032],[1514160000000,22.0032],[1514246400000,22.0032],[1514332800000,21.9982],[1514419200000,22.1218],[1514505600000,22.2576],[1514592000000,22.2576],[1514678400000,22.2576]], 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, 21.076155],[1512086400000, 21.076155],[1512172800000, 21.014352],[1512259200000, 21.014352],[1512345600000, 21.014352],[1512432000000, 21.478632],[1512518400000, 21.503188],[1512604800000, 21.409399],[1512691200000, 21.124104],[1512777600000, 21.119820],[1512864000000, 21.119820],[1512950400000, 21.119820],[1513036800000, 21.103175],[1513123200000, 21.179350],[1513209600000, 21.204033],[1513296000000, 21.365591],[1513382400000, 21.649605],[1513468800000, 21.649605],[1513555200000, 21.649605],[1513641600000, 21.650940],[1513728000000, 21.679235],[1513814400000, 21.681362],[1513900800000, 21.756028],[1513987200000, 22.003206],[1514073600000, 22.003206],[1514160000000, 22.003206],[1514246400000, 22.003206],[1514332800000, 21.998204],[1514419200000, 22.121839],[1514505600000, 22.257575],[1514592000000, 22.257575],[1514678400000, 22.257575]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });