$(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: [[1367366400000,1.40135],[1367452800000,1.40135],[1367539200000,1.40135],[1367625600000,1.40135],[1367712000000,1.40135],[1367798400000,1.40135],[1367884800000,1.40135],[1367971200000,1.40574],[1368057600000,1.40857],[1368144000000,1.40857],[1368230400000,1.40857],[1368316800000,1.40857],[1368403200000,1.40857],[1368489600000,1.39122],[1368576000000,1.3917],[1368662400000,1.37944],[1368748800000,1.38241],[1368835200000,1.38025],[1368921600000,1.38025],[1369008000000,1.38025],[1369094400000,1.37846],[1369180800000,1.37987],[1369267200000,1.38584],[1369353600000,1.38197],[1369440000000,1.38748],[1369526400000,1.38748],[1369612800000,1.38748],[1369699200000,1.38763],[1369785600000,1.3876],[1369872000000,1.38888],[1369958400000,1.38789]], 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: [[1367366400000, 1.401348],[1367366400000, 1.401348],[1367452800000, 1.401348],[1367539200000, 1.401348],[1367625600000, 1.401348],[1367712000000, 1.401348],[1367798400000, 1.401348],[1367884800000, 1.401348],[1367971200000, 1.405741],[1368057600000, 1.408574],[1368144000000, 1.408574],[1368230400000, 1.408574],[1368316800000, 1.408574],[1368403200000, 1.408574],[1368489600000, 1.391220],[1368576000000, 1.391705],[1368662400000, 1.379438],[1368748800000, 1.382412],[1368835200000, 1.380252],[1368921600000, 1.380252],[1369008000000, 1.380252],[1369094400000, 1.378462],[1369180800000, 1.379875],[1369267200000, 1.385839],[1369353600000, 1.381975],[1369440000000, 1.387481],[1369526400000, 1.387481],[1369612800000, 1.387481],[1369699200000, 1.387630],[1369785600000, 1.387597],[1369872000000, 1.388875],[1369958400000, 1.387887]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });