$(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: [[1456790400000,19.9775],[1456876800000,20.0334],[1456963200000,19.9423],[1457049600000,19.5134],[1457136000000,19.7509],[1457222400000,19.7509],[1457308800000,19.7509],[1457395200000,19.7509],[1457481600000,19.7509],[1457568000000,19.5378],[1457654400000,19.2084],[1457740800000,19.5008],[1457827200000,19.6327],[1457913600000,19.6327],[1458000000000,20.0073],[1458086400000,20.1369],[1458172800000,20.0709],[1458259200000,20.5431],[1458345600000,20.2361],[1458432000000,20.2361],[1458518400000,20.2361],[1458604800000,20.3915],[1458691200000,19.9374],[1458777600000,19.802],[1458864000000,19.7569],[1458950400000,19.62],[1459036800000,19.62],[1459123200000,19.62],[1459209600000,19.7779],[1459296000000,20.0773],[1459382400000,20.1215]], 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: [[1456790400000, 19.977531],[1456790400000, 19.977531],[1456876800000, 20.033377],[1456963200000, 19.942284],[1457049600000, 19.513431],[1457136000000, 19.750867],[1457222400000, 19.750867],[1457308800000, 19.750867],[1457395200000, 19.750867],[1457481600000, 19.750867],[1457568000000, 19.537802],[1457654400000, 19.208394],[1457740800000, 19.500796],[1457827200000, 19.632696],[1457913600000, 19.632696],[1458000000000, 20.007285],[1458086400000, 20.136874],[1458172800000, 20.070933],[1458259200000, 20.543053],[1458345600000, 20.236118],[1458432000000, 20.236118],[1458518400000, 20.236118],[1458604800000, 20.391507],[1458691200000, 19.937399],[1458777600000, 19.802009],[1458864000000, 19.756871],[1458950400000, 19.620031],[1459036800000, 19.620031],[1459123200000, 19.620031],[1459209600000, 19.777932],[1459296000000, 20.077342],[1459382400000, 20.121536]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });