$(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: [[1454284800000,3.73936],[1454371200000,3.71163],[1454457600000,3.7855],[1454544000000,3.76506],[1454630400000,3.88794],[1454716800000,3.8896],[1454803200000,3.8896],[1454889600000,3.8896],[1454976000000,3.84914],[1455062400000,3.90585],[1455148800000,3.91248],[1455235200000,3.96543],[1455321600000,3.94968],[1455408000000,3.94968],[1455494400000,3.94968],[1455580800000,4.01707],[1455667200000,4.04189],[1455753600000,3.98681],[1455840000000,3.92989],[1455926400000,3.99319],[1456012800000,3.99319],[1456099200000,3.99319],[1456185600000,3.99172],[1456272000000,4.01548],[1456358400000,4.00541],[1456444800000,4.02684],[1456531200000,3.99143],[1456617600000,3.99143],[1456704000000,3.99143]], 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: [[1454284800000, 3.739359],[1454284800000, 3.739359],[1454371200000, 3.711627],[1454457600000, 3.785504],[1454544000000, 3.765064],[1454630400000, 3.887943],[1454716800000, 3.889605],[1454803200000, 3.889605],[1454889600000, 3.889605],[1454976000000, 3.849138],[1455062400000, 3.905846],[1455148800000, 3.912482],[1455235200000, 3.965425],[1455321600000, 3.949683],[1455408000000, 3.949683],[1455494400000, 3.949683],[1455580800000, 4.017071],[1455667200000, 4.041893],[1455753600000, 3.986807],[1455840000000, 3.929894],[1455926400000, 3.993186],[1456012800000, 3.993186],[1456099200000, 3.993186],[1456185600000, 3.991717],[1456272000000, 4.015478],[1456358400000, 4.005411],[1456444800000, 4.026841],[1456531200000, 3.991429],[1456617600000, 3.991429],[1456704000000, 3.991429]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });