$(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: [[1383264000000,1.46182],[1383350400000,null],[1383436800000,1.4473],[1383523200000,1.4473],[1383609600000,1.44741],[1383696000000,1.44614],[1383782400000,1.44841],[1383868800000,1.43224],[1383955200000,1.43933],[1384041600000,1.43933],[1384128000000,1.43933],[1384214400000,1.43537],[1384300800000,1.43955],[1384387200000,1.43756],[1384473600000,1.43981],[1384560000000,1.4424],[1384646400000,1.4424],[1384732800000,1.4424],[1384819200000,1.44851],[1384905600000,1.44696],[1384992000000,1.44954],[1385078400000,1.44367],[1385164800000,1.44866],[1385251200000,1.44866],[1385337600000,1.44866],[1385424000000,1.44825],[1385510400000,1.45178],[1385596800000,1.45701],[1385683200000,1.45659],[1385769600000,1.45856]], 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: [[1383264000000, 1.461817],[1383264000000, 1.461817],[1383436800000, 1.447301],[1383523200000, 1.447301],[1383609600000, 1.447408],[1383696000000, 1.446141],[1383782400000, 1.448412],[1383868800000, 1.432239],[1383955200000, 1.439332],[1384041600000, 1.439332],[1384128000000, 1.439332],[1384214400000, 1.435366],[1384300800000, 1.439555],[1384387200000, 1.437559],[1384473600000, 1.439809],[1384560000000, 1.442401],[1384646400000, 1.442401],[1384732800000, 1.442401],[1384819200000, 1.448509],[1384905600000, 1.446960],[1384992000000, 1.449542],[1385078400000, 1.443667],[1385164800000, 1.448655],[1385251200000, 1.448655],[1385337600000, 1.448655],[1385424000000, 1.448246],[1385510400000, 1.451782],[1385596800000, 1.457014],[1385683200000, 1.456585],[1385769600000, 1.458563]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });