$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1183248000000,3.79413],[1183334400000,3.79413],[1183420800000,3.87221],[1183507200000,3.90123],[1183593600000,3.90389],[1183680000000,3.89957],[1183766400000,3.89957],[1183852800000,3.89957],[1183939200000,3.89957],[1184025600000,3.92906],[1184112000000,3.91498],[1184198400000,3.89527],[1184284800000,3.92942],[1184371200000,3.96802],[1184457600000,3.96802],[1184544000000,3.96802],[1184630400000,3.9666],[1184716800000,3.94753],[1184803200000,3.95184],[1184889600000,3.98237],[1184976000000,3.9786],[1185062400000,3.9786],[1185148800000,3.9786],[1185235200000,4.03282],[1185321600000,4.0871],[1185408000000,4.05861],[1185494400000,3.95571],[1185580800000,3.84782],[1185667200000,3.84782],[1185753600000,3.84782]], 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, 3.794135],[1183248000000, 3.794135],[1183334400000, 3.794135],[1183420800000, 3.872208],[1183507200000, 3.901230],[1183593600000, 3.903889],[1183680000000, 3.899570],[1183766400000, 3.899574],[1183852800000, 3.899574],[1183939200000, 3.899574],[1184025600000, 3.929060],[1184112000000, 3.914982],[1184198400000, 3.895269],[1184284800000, 3.929424],[1184371200000, 3.968022],[1184457600000, 3.968022],[1184544000000, 3.968022],[1184630400000, 3.966603],[1184716800000, 3.947525],[1184803200000, 3.951837],[1184889600000, 3.982368],[1184976000000, 3.978604],[1185062400000, 3.978604],[1185148800000, 3.978604],[1185235200000, 4.032822],[1185321600000, 4.087096],[1185408000000, 4.058605],[1185494400000, 3.955708],[1185580800000, 3.847820],[1185667200000, 3.847820],[1185753600000, 3.847820]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });