$(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: [[1238544000000,1.37579],[1238630400000,1.36938],[1238716800000,1.38397],[1238803200000,1.38789],[1238889600000,1.38789],[1238976000000,1.38789],[1239062400000,1.39517],[1239148800000,1.37024],[1239235200000,1.36733],[1239321600000,1.37177],[1239408000000,1.37177],[1239494400000,1.37177],[1239580800000,1.37177],[1239667200000,1.37177],[1239753600000,1.37228],[1239840000000,1.36154],[1239926400000,1.3641],[1240012800000,1.34976],[1240099200000,1.34976],[1240185600000,1.34976],[1240272000000,1.34976],[1240358400000,1.33674],[1240444800000,1.3384],[1240531200000,1.3489],[1240617600000,1.36775],[1240704000000,1.36775],[1240790400000,1.36775],[1240876800000,1.35676],[1240963200000,1.34307],[1241049600000,1.37143]], 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: [[1238544000000, 1.375790],[1238544000000, 1.375790],[1238630400000, 1.369381],[1238716800000, 1.383972],[1238803200000, 1.387886],[1238889600000, 1.387886],[1238976000000, 1.387886],[1239062400000, 1.395169],[1239148800000, 1.370237],[1239235200000, 1.367334],[1239321600000, 1.371767],[1239408000000, 1.371767],[1239494400000, 1.371767],[1239580800000, 1.371767],[1239667200000, 1.371767],[1239753600000, 1.372279],[1239840000000, 1.361541],[1239926400000, 1.364102],[1240012800000, 1.349764],[1240099200000, 1.349764],[1240185600000, 1.349764],[1240272000000, 1.349764],[1240358400000, 1.336740],[1240444800000, 1.338398],[1240531200000, 1.348901],[1240617600000, 1.367750],[1240704000000, 1.367750],[1240790400000, 1.367750],[1240876800000, 1.356762],[1240963200000, 1.343068],[1241049600000, 1.371430]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });