$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1525132800000,4.13217],[1525219200000,4.13217],[1525305600000,4.11305],[1525392000000,4.12541],[1525478400000,4.13662],[1525564800000,4.13662],[1525651200000,4.13662],[1525737600000,4.12924],[1525824000000,4.11743],[1525910400000,4.11743],[1525996800000,4.12509],[1526083200000,4.13708],[1526169600000,4.13708],[1526256000000,4.13708],[1526342400000,4.12964],[1526428800000,4.11955],[1526515200000,4.11032],[1526601600000,4.11258],[1526688000000,4.09929],[1526774400000,4.09929],[1526860800000,4.09929],[1526947200000,4.08428],[1527033600000,4.09366],[1527120000000,4.08255],[1527206400000,4.08972],[1527292800000,4.09183],[1527379200000,4.09183],[1527465600000,4.09183],[1527552000000,4.09183],[1527638400000,4.06681],[1527724800000,4.07124]], 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: [[1525132800000, 4.132173],[1525132800000, 4.132173],[1525219200000, 4.132173],[1525305600000, 4.113052],[1525392000000, 4.125410],[1525478400000, 4.136623],[1525564800000, 4.136623],[1525651200000, 4.136623],[1525737600000, 4.129244],[1525824000000, 4.117429],[1525910400000, 4.117429],[1525996800000, 4.125094],[1526083200000, 4.137075],[1526169600000, 4.137075],[1526256000000, 4.137075],[1526342400000, 4.129636],[1526428800000, 4.119554],[1526515200000, 4.110319],[1526601600000, 4.112578],[1526688000000, 4.099287],[1526774400000, 4.099287],[1526860800000, 4.099287],[1526947200000, 4.084281],[1527033600000, 4.093664],[1527120000000, 4.082551],[1527206400000, 4.089717],[1527292800000, 4.091827],[1527379200000, 4.091827],[1527465600000, 4.091827],[1527552000000, 4.091827],[1527638400000, 4.066810],[1527724800000, 4.071242]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });