$(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: [[1514764800000,22.2576],[1514851200000,22.2576],[1514937600000,22.2576],[1515024000000,22.2854],[1515110400000,22.3621],[1515196800000,22.5451],[1515283200000,22.5451],[1515369600000,22.5451],[1515456000000,22.5451],[1515542400000,22.698],[1515628800000,22.7526],[1515715200000,22.6484],[1515801600000,22.7951],[1515888000000,22.7951],[1515974400000,22.7951],[1516060800000,22.9788],[1516147200000,23.0631],[1516233600000,23.0367],[1516320000000,23.1199],[1516406400000,23.186],[1516492800000,23.186],[1516579200000,23.186],[1516665600000,23.1442],[1516752000000,23.1255],[1516838400000,23.4122],[1516924800000,23.3267],[1517011200000,23.1668],[1517097600000,23.1668],[1517184000000,23.1668],[1517270400000,22.9002],[1517356800000,22.7324]], 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: [[1514764800000, 22.257575],[1514764800000, 22.257575],[1514851200000, 22.257575],[1514937600000, 22.257575],[1515024000000, 22.285370],[1515110400000, 22.362132],[1515196800000, 22.545069],[1515283200000, 22.545069],[1515369600000, 22.545069],[1515456000000, 22.545069],[1515542400000, 22.698038],[1515628800000, 22.752604],[1515715200000, 22.648387],[1515801600000, 22.795127],[1515888000000, 22.795127],[1515974400000, 22.795127],[1516060800000, 22.978786],[1516147200000, 23.063117],[1516233600000, 23.036734],[1516320000000, 23.119872],[1516406400000, 23.185965],[1516492800000, 23.185965],[1516579200000, 23.185965],[1516665600000, 23.144163],[1516752000000, 23.125464],[1516838400000, 23.412241],[1516924800000, 23.326725],[1517011200000, 23.166777],[1517097600000, 23.166777],[1517184000000, 23.166777],[1517270400000, 22.900230],[1517356800000, 22.732436]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });