$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1519862400000,20.2576],[1519948800000,20.0987],[1520035200000,20.0916],[1520121600000,20.0916],[1520208000000,20.0916],[1520294400000,20.0711],[1520380800000,20.0317],[1520467200000,19.8498],[1520553600000,19.8498],[1520640000000,19.8498],[1520726400000,19.8498],[1520812800000,19.8498],[1520899200000,19.7208],[1520985600000,19.7724],[1521072000000,19.8707],[1521158400000,20.0365],[1521244800000,20.0333],[1521331200000,20.0333],[1521417600000,20.0333],[1521504000000,20.058],[1521590400000,19.9624],[1521676800000,19.9351],[1521763200000,19.9506],[1521849600000,19.9971],[1521936000000,19.9971],[1522022400000,19.9971],[1522108800000,20.0605],[1522195200000,20.0868],[1522281600000,20.1907],[1522368000000,20.2403],[1522454400000,20.06]], 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, 20.257553],[1519862400000, 20.257553],[1519948800000, 20.098727],[1520035200000, 20.091633],[1520121600000, 20.091633],[1520208000000, 20.091633],[1520294400000, 20.071127],[1520380800000, 20.031663],[1520467200000, 19.849820],[1520553600000, 19.849820],[1520640000000, 19.849820],[1520726400000, 19.849820],[1520812800000, 19.849820],[1520899200000, 19.720788],[1520985600000, 19.772365],[1521072000000, 19.870740],[1521158400000, 20.036511],[1521244800000, 20.033336],[1521331200000, 20.033336],[1521417600000, 20.033336],[1521504000000, 20.058020],[1521590400000, 19.962441],[1521676800000, 19.935053],[1521763200000, 19.950635],[1521849600000, 19.997138],[1521936000000, 19.997138],[1522022400000, 19.997138],[1522108800000, 20.060451],[1522195200000, 20.086772],[1522281600000, 20.190716],[1522368000000, 20.240276],[1522454400000, 20.059977]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });