$(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: [[1525132800000,19.7552],[1525219200000,19.7552],[1525305600000,19.5971],[1525392000000,19.6772],[1525478400000,19.725],[1525564800000,19.725],[1525651200000,19.725],[1525737600000,19.6586],[1525824000000,19.5945],[1525910400000,19.5945],[1525996800000,19.536],[1526083200000,19.6423],[1526169600000,19.6423],[1526256000000,19.6423],[1526342400000,19.6333],[1526428800000,19.579],[1526515200000,19.517],[1526601600000,19.5115],[1526688000000,19.4623],[1526774400000,19.4623],[1526860800000,19.4623],[1526947200000,19.4088],[1527033600000,19.4955],[1527120000000,19.3832],[1527206400000,19.4702],[1527292800000,19.5052],[1527379200000,19.5052],[1527465600000,19.5052],[1527552000000,19.5052],[1527638400000,19.3801],[1527724800000,19.5029]], 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, 19.755168],[1525132800000, 19.755168],[1525219200000, 19.755168],[1525305600000, 19.597123],[1525392000000, 19.677240],[1525478400000, 19.725021],[1525564800000, 19.725021],[1525651200000, 19.725021],[1525737600000, 19.658595],[1525824000000, 19.594534],[1525910400000, 19.594534],[1525996800000, 19.535980],[1526083200000, 19.642335],[1526169600000, 19.642335],[1526256000000, 19.642335],[1526342400000, 19.633345],[1526428800000, 19.579018],[1526515200000, 19.517004],[1526601600000, 19.511452],[1526688000000, 19.462292],[1526774400000, 19.462292],[1526860800000, 19.462292],[1526947200000, 19.408798],[1527033600000, 19.495518],[1527120000000, 19.383178],[1527206400000, 19.470238],[1527292800000, 19.505194],[1527379200000, 19.505194],[1527465600000, 19.505194],[1527552000000, 19.505194],[1527638400000, 19.380121],[1527724800000, 19.502940]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });