$(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: [[1519862400000,4.39673],[1519948800000,4.35873],[1520035200000,4.38661],[1520121600000,4.38661],[1520208000000,4.38661],[1520294400000,4.37658],[1520380800000,4.38984],[1520467200000,4.34899],[1520553600000,4.34899],[1520640000000,4.34899],[1520726400000,4.34899],[1520812800000,4.34899],[1520899200000,4.2811],[1520985600000,4.30667],[1521072000000,4.31942],[1521158400000,4.35285],[1521244800000,4.35222],[1521331200000,4.35222],[1521417600000,4.35222],[1521504000000,4.36874],[1521590400000,4.33473],[1521676800000,4.33488],[1521763200000,4.34107],[1521849600000,4.35395],[1521936000000,4.35395],[1522022400000,4.35395],[1522108800000,4.38312],[1522195200000,4.37066],[1522281600000,4.39349],[1522368000000,4.38806],[1522454400000,4.34898]], 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: [[1519862400000, 4.396731],[1519862400000, 4.396731],[1519948800000, 4.358727],[1520035200000, 4.386606],[1520121600000, 4.386606],[1520208000000, 4.386606],[1520294400000, 4.376577],[1520380800000, 4.389842],[1520467200000, 4.348992],[1520553600000, 4.348992],[1520640000000, 4.348992],[1520726400000, 4.348992],[1520812800000, 4.348992],[1520899200000, 4.281097],[1520985600000, 4.306673],[1521072000000, 4.319425],[1521158400000, 4.352851],[1521244800000, 4.352220],[1521331200000, 4.352220],[1521417600000, 4.352220],[1521504000000, 4.368740],[1521590400000, 4.334732],[1521676800000, 4.334882],[1521763200000, 4.341066],[1521849600000, 4.353951],[1521936000000, 4.353951],[1522022400000, 4.353951],[1522108800000, 4.383123],[1522195200000, 4.370664],[1522281600000, 4.393492],[1522368000000, 4.388064],[1522454400000, 4.348975]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });