$(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: [[1285891200000,1.4487],[1285977600000,1.45688],[1286064000000,1.45688],[1286150400000,1.45688],[1286236800000,1.4543],[1286323200000,1.4621],[1286409600000,1.47021],[1286496000000,1.48202],[1286582400000,1.47182],[1286668800000,1.47182],[1286755200000,1.47182],[1286841600000,1.4781],[1286928000000,1.46733],[1287014400000,1.48067],[1287100800000,1.49551],[1287187200000,1.49442],[1287273600000,1.49442],[1287360000000,1.49442],[1287446400000,1.47422],[1287532800000,1.47031],[1287619200000,1.47038],[1287705600000,1.48677],[1287792000000,1.47824],[1287878400000,1.47824],[1287964800000,1.47824],[1288051200000,1.48846],[1288137600000,1.47587],[1288224000000,1.46415],[1288310400000,1.4699],[1288396800000,1.47022],[1288483200000,1.47022]], 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: [[1285891200000, 1.448700],[1285891200000, 1.448700],[1285977600000, 1.456883],[1286064000000, 1.456883],[1286150400000, 1.456883],[1286236800000, 1.454303],[1286323200000, 1.462104],[1286409600000, 1.470208],[1286496000000, 1.482025],[1286582400000, 1.471821],[1286668800000, 1.471821],[1286755200000, 1.471821],[1286841600000, 1.478101],[1286928000000, 1.467334],[1287014400000, 1.480673],[1287100800000, 1.495514],[1287187200000, 1.494420],[1287273600000, 1.494420],[1287360000000, 1.494420],[1287446400000, 1.474215],[1287532800000, 1.470310],[1287619200000, 1.470384],[1287705600000, 1.486766],[1287792000000, 1.478244],[1287878400000, 1.478244],[1287964800000, 1.478244],[1288051200000, 1.488457],[1288137600000, 1.475873],[1288224000000, 1.464153],[1288310400000, 1.469900],[1288396800000, 1.470222],[1288483200000, 1.470222]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });