$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1183248000000,7.64342],[1183334400000,7.64342],[1183420800000,7.67824],[1183507200000,7.6833],[1183593600000,7.6833],[1183680000000,7.69307],[1183766400000,7.67728],[1183852800000,7.67728],[1183939200000,7.67728],[1184025600000,7.68479],[1184112000000,7.68984],[1184198400000,7.72872],[1184284800000,7.73595],[1184371200000,7.72895],[1184457600000,7.72895],[1184544000000,7.72895],[1184630400000,7.74152],[1184716800000,7.73786],[1184803200000,7.74207],[1184889600000,7.74831],[1184976000000,7.74169],[1185062400000,7.74169],[1185148800000,7.74169],[1185235200000,7.75572],[1185321600000,7.76059],[1185408000000,7.74166],[1185494400000,7.73866],[1185580800000,7.72612],[1185667200000,7.72612],[1185753600000,7.72612]], 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, 7.643420],[1183248000000, 7.643420],[1183334400000, 7.643420],[1183420800000, 7.678238],[1183507200000, 7.683296],[1183593600000, 7.683296],[1183680000000, 7.693069],[1183766400000, 7.677281],[1183852800000, 7.677281],[1183939200000, 7.677281],[1184025600000, 7.684793],[1184112000000, 7.689836],[1184198400000, 7.728720],[1184284800000, 7.735954],[1184371200000, 7.728945],[1184457600000, 7.728945],[1184544000000, 7.728945],[1184630400000, 7.741516],[1184716800000, 7.737863],[1184803200000, 7.742074],[1184889600000, 7.748310],[1184976000000, 7.741694],[1185062400000, 7.741694],[1185148800000, 7.741694],[1185235200000, 7.755724],[1185321600000, 7.760587],[1185408000000, 7.741659],[1185494400000, 7.738657],[1185580800000, 7.726119],[1185667200000, 7.726119],[1185753600000, 7.726119]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });