$(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: [[1193875200000,0.978676],[1193961600000,0.977181],[1194048000000,0.980936],[1194134400000,0.980936],[1194220800000,0.980936],[1194307200000,0.981506],[1194393600000,0.985516],[1194480000000,0.997399],[1194566400000,0.993498],[1194652800000,0.994783],[1194739200000,0.994783],[1194825600000,0.994783],[1194912000000,0.987909],[1194998400000,0.989807],[1195084800000,0.996216],[1195171200000,0.991949],[1195257600000,0.992682],[1195344000000,0.992682],[1195430400000,0.992682],[1195516800000,0.992938],[1195603200000,1.00188],[1195689600000,1.00358],[1195776000000,1.00453],[1195862400000,1.00314],[1195948800000,1.00314],[1196035200000,1.00314],[1196121600000,1.00554],[1196208000000,1.00733],[1196294400000,0.998717],[1196380800000,0.998027]], 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: [[1193875200000, 0.978676],[1193875200000, 0.978676],[1193961600000, 0.977181],[1194048000000, 0.980936],[1194134400000, 0.980936],[1194220800000, 0.980936],[1194307200000, 0.981506],[1194393600000, 0.985516],[1194480000000, 0.997399],[1194566400000, 0.993498],[1194652800000, 0.994783],[1194739200000, 0.994783],[1194825600000, 0.994783],[1194912000000, 0.987909],[1194998400000, 0.989807],[1195084800000, 0.996216],[1195171200000, 0.991949],[1195257600000, 0.992682],[1195344000000, 0.992682],[1195430400000, 0.992682],[1195516800000, 0.992938],[1195603200000, 1.001882],[1195689600000, 1.003578],[1195776000000, 1.004527],[1195862400000, 1.003145],[1195948800000, 1.003145],[1196035200000, 1.003145],[1196121600000, 1.005543],[1196208000000, 1.007332],[1196294400000, 0.998717],[1196380800000, 0.998027]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });