$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1548979200000,3.07228],[1549065600000,3.04457],[1549152000000,3.04457],[1549238400000,3.04457],[1549324800000,3.01465],[1549411200000,2.98935],[1549497600000,2.94681],[1549584000000,2.9204],[1549670400000,2.90748],[1549756800000,2.90748],[1549843200000,2.90748],[1549929600000,2.91819],[1550016000000,2.91312],[1550102400000,2.94269],[1550188800000,2.92091],[1550275200000,2.92723],[1550361600000,2.92723],[1550448000000,2.92723],[1550534400000,2.9418],[1550620800000,2.89523],[1550707200000,2.90651],[1550793600000,2.88722],[1550880000000,2.88657],[1550966400000,2.88657],[1551052800000,2.88657],[1551139200000,2.89697],[1551225600000,2.89586],[1551312000000,2.91475]], 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: [[1548979200000, 3.072285],[1548979200000, 3.072285],[1549065600000, 3.044567],[1549152000000, 3.044567],[1549238400000, 3.044567],[1549324800000, 3.014649],[1549411200000, 2.989353],[1549497600000, 2.946813],[1549584000000, 2.920403],[1549670400000, 2.907484],[1549756800000, 2.907484],[1549843200000, 2.907484],[1549929600000, 2.918191],[1550016000000, 2.913122],[1550102400000, 2.942690],[1550188800000, 2.920911],[1550275200000, 2.927226],[1550361600000, 2.927226],[1550448000000, 2.927226],[1550534400000, 2.941797],[1550620800000, 2.895233],[1550707200000, 2.906513],[1550793600000, 2.887218],[1550880000000, 2.886574],[1550966400000, 2.886574],[1551052800000, 2.886574],[1551139200000, 2.896968],[1551225600000, 2.895857],[1551312000000, 2.914746]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });