$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1519862400000,0.083689],[1519948800000,0.082995],[1520035200000,0.08231],[1520121600000,0.08231],[1520208000000,0.08231],[1520294400000,0.082432],[1520380800000,0.082482],[1520467200000,0.081495],[1520553600000,0.081495],[1520640000000,0.081495],[1520726400000,0.081495],[1520812800000,0.081495],[1520899200000,0.080875],[1520985600000,0.080584],[1521072000000,0.080794],[1521158400000,0.081648],[1521244800000,0.081662],[1521331200000,0.081662],[1521417600000,0.081662],[1521504000000,0.082458],[1521590400000,0.082104],[1521676800000,0.082041],[1521763200000,0.081956],[1521849600000,0.081993],[1521936000000,0.081993],[1522022400000,0.081993],[1522108800000,0.082392],[1522195200000,0.082491],[1522281600000,0.08269],[1522368000000,0.083203],[1522454400000,0.082646]], 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, 0.083689],[1519862400000, 0.083689],[1519948800000, 0.082995],[1520035200000, 0.082310],[1520121600000, 0.082310],[1520208000000, 0.082310],[1520294400000, 0.082432],[1520380800000, 0.082482],[1520467200000, 0.081495],[1520553600000, 0.081495],[1520640000000, 0.081495],[1520726400000, 0.081495],[1520812800000, 0.081495],[1520899200000, 0.080875],[1520985600000, 0.080584],[1521072000000, 0.080794],[1521158400000, 0.081648],[1521244800000, 0.081662],[1521331200000, 0.081662],[1521417600000, 0.081662],[1521504000000, 0.082458],[1521590400000, 0.082104],[1521676800000, 0.082041],[1521763200000, 0.081956],[1521849600000, 0.081993],[1521936000000, 0.081993],[1522022400000, 0.081993],[1522108800000, 0.082392],[1522195200000, 0.082491],[1522281600000, 0.082690],[1522368000000, 0.083203],[1522454400000, 0.082646]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });