$(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: [[1535760000000,4.41395],[1535846400000,4.41395],[1535932800000,4.41395],[1536019200000,4.41993],[1536105600000,4.41923],[1536192000000,4.41345],[1536278400000,4.40363],[1536364800000,4.40195],[1536451200000,4.40195],[1536537600000,4.40195],[1536624000000,4.37536],[1536710400000,4.35926],[1536796800000,4.35266],[1536883200000,4.38139],[1536969600000,4.41136],[1537056000000,4.41136],[1537142400000,4.41136],[1537228800000,4.40072],[1537315200000,4.41385],[1537401600000,4.39801],[1537488000000,4.42755],[1537574400000,4.42366],[1537660800000,4.42366],[1537747200000,4.42366],[1537833600000,4.43653],[1537920000000,4.43016],[1538006400000,4.42873],[1538092800000,4.44139],[1538179200000,4.38888],[1538265600000,4.38888]], 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: [[1535760000000, 4.413953],[1535760000000, 4.413953],[1535846400000, 4.413953],[1535932800000, 4.413953],[1536019200000, 4.419927],[1536105600000, 4.419231],[1536192000000, 4.413452],[1536278400000, 4.403629],[1536364800000, 4.401954],[1536451200000, 4.401954],[1536537600000, 4.401954],[1536624000000, 4.375363],[1536710400000, 4.359255],[1536796800000, 4.352660],[1536883200000, 4.381386],[1536969600000, 4.411357],[1537056000000, 4.411357],[1537142400000, 4.411357],[1537228800000, 4.400721],[1537315200000, 4.413854],[1537401600000, 4.398011],[1537488000000, 4.427551],[1537574400000, 4.423655],[1537660800000, 4.423655],[1537747200000, 4.423655],[1537833600000, 4.436532],[1537920000000, 4.430163],[1538006400000, 4.428732],[1538092800000, 4.441390],[1538179200000, 4.388884],[1538265600000, 4.388884]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });