$(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: [[1183248000000,4.71787],[1183334400000,4.71787],[1183420800000,4.76689],[1183507200000,4.77643],[1183593600000,4.77079],[1183680000000,4.77485],[1183766400000,4.80038],[1183852800000,4.80038],[1183939200000,4.80038],[1184025600000,4.82235],[1184112000000,4.81634],[1184198400000,4.76715],[1184284800000,4.80733],[1184371200000,4.82858],[1184457600000,4.82858],[1184544000000,4.82858],[1184630400000,4.82655],[1184716800000,4.83613],[1184803200000,4.82652],[1184889600000,4.83988],[1184976000000,4.83896],[1185062400000,4.83896],[1185148800000,4.83896],[1185235200000,4.83486],[1185321600000,4.83236],[1185408000000,4.86146],[1185494400000,4.81357],[1185580800000,4.76879],[1185667200000,4.76879],[1185753600000,4.76879]], 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: [[1183248000000, 4.717874],[1183248000000, 4.717874],[1183334400000, 4.717874],[1183420800000, 4.766891],[1183507200000, 4.776429],[1183593600000, 4.770787],[1183680000000, 4.774851],[1183766400000, 4.800378],[1183852800000, 4.800378],[1183939200000, 4.800378],[1184025600000, 4.822353],[1184112000000, 4.816337],[1184198400000, 4.767153],[1184284800000, 4.807332],[1184371200000, 4.828576],[1184457600000, 4.828576],[1184544000000, 4.828576],[1184630400000, 4.826552],[1184716800000, 4.836130],[1184803200000, 4.826521],[1184889600000, 4.839875],[1184976000000, 4.838955],[1185062400000, 4.838955],[1185148800000, 4.838955],[1185235200000, 4.834861],[1185321600000, 4.832364],[1185408000000, 4.861456],[1185494400000, 4.813566],[1185580800000, 4.768785],[1185667200000, 4.768785],[1185753600000, 4.768785]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });