$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1183248000000,0.91184],[1183334400000,0.91184],[1183420800000,0.92218],[1183507200000,0.922988],[1183593600000,0.924154],[1183680000000,0.925647],[1183766400000,0.922673],[1183852800000,0.922673],[1183939200000,0.922673],[1184025600000,0.924494],[1184112000000,0.927636],[1184198400000,0.933566],[1184284800000,0.935703],[1184371200000,0.935271],[1184457600000,0.935271],[1184544000000,0.935271],[1184630400000,0.93524],[1184716800000,0.934574],[1184803200000,0.935117],[1184889600000,0.937925],[1184976000000,0.936784],[1185062400000,0.936784],[1185148800000,0.936784],[1185235200000,0.938018],[1185321600000,0.93882],[1185408000000,0.932699],[1185494400000,0.931236],[1185580800000,0.92648],[1185667200000,0.92648],[1185753600000,0.92648]], 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, 0.911840],[1183248000000, 0.911840],[1183334400000, 0.911840],[1183420800000, 0.922180],[1183507200000, 0.922988],[1183593600000, 0.924154],[1183680000000, 0.925647],[1183766400000, 0.922673],[1183852800000, 0.922673],[1183939200000, 0.922673],[1184025600000, 0.924494],[1184112000000, 0.927636],[1184198400000, 0.933566],[1184284800000, 0.935703],[1184371200000, 0.935271],[1184457600000, 0.935271],[1184544000000, 0.935271],[1184630400000, 0.935240],[1184716800000, 0.934574],[1184803200000, 0.935117],[1184889600000, 0.937925],[1184976000000, 0.936784],[1185062400000, 0.936784],[1185148800000, 0.936784],[1185235200000, 0.938018],[1185321600000, 0.938820],[1185408000000, 0.932699],[1185494400000, 0.931236],[1185580800000, 0.926480],[1185667200000, 0.926480],[1185753600000, 0.926480]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });