$(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: [[1530403200000,4.10458],[1530489600000,4.10458],[1530576000000,4.09807],[1530662400000,4.11753],[1530748800000,4.13103],[1530835200000,4.15352],[1530921600000,4.13976],[1531008000000,4.13976],[1531094400000,4.13976],[1531180800000,4.15191],[1531267200000,4.11865],[1531353600000,4.12896],[1531440000000,4.10128],[1531526400000,4.09675],[1531612800000,4.09675],[1531699200000,4.09675],[1531785600000,4.12003],[1531872000000,4.11827],[1531958400000,4.09702],[1532044800000,4.11557],[1532131200000,4.14152],[1532217600000,4.14152],[1532304000000,4.14152],[1532390400000,4.15902],[1532476800000,4.17673],[1532563200000,4.17737],[1532649600000,4.19029],[1532736000000,4.17587],[1532822400000,4.17587],[1532908800000,4.17587],[1532995200000,4.19647]], 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: [[1530403200000, 4.104583],[1530403200000, 4.104583],[1530489600000, 4.104583],[1530576000000, 4.098066],[1530662400000, 4.117532],[1530748800000, 4.131035],[1530835200000, 4.153520],[1530921600000, 4.139762],[1531008000000, 4.139762],[1531094400000, 4.139762],[1531180800000, 4.151909],[1531267200000, 4.118654],[1531353600000, 4.128960],[1531440000000, 4.101276],[1531526400000, 4.096753],[1531612800000, 4.096753],[1531699200000, 4.096753],[1531785600000, 4.120030],[1531872000000, 4.118270],[1531958400000, 4.097017],[1532044800000, 4.115574],[1532131200000, 4.141520],[1532217600000, 4.141520],[1532304000000, 4.141520],[1532390400000, 4.159021],[1532476800000, 4.176727],[1532563200000, 4.177368],[1532649600000, 4.190291],[1532736000000, 4.175873],[1532822400000, 4.175873],[1532908800000, 4.175873],[1532995200000, 4.196474]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });