$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1514764800000,37.7337],[1514851200000,37.7337],[1514937600000,37.7337],[1515024000000,37.8303],[1515110400000,37.9315],[1515196800000,38.2198],[1515283200000,38.2198],[1515369600000,38.2198],[1515456000000,38.2198],[1515542400000,38.1241],[1515628800000,38.3127],[1515715200000,38.3758],[1515801600000,38.9231],[1515888000000,38.9231],[1515974400000,38.9231],[1516060800000,39.3883],[1516147200000,39.4352],[1516233600000,39.4965],[1516320000000,39.9162],[1516406400000,40.0038],[1516492800000,40.0038],[1516579200000,40.0038],[1516665600000,40.1216],[1516752000000,40.2556],[1516838400000,40.8962],[1516924800000,40.9755],[1517011200000,40.6516],[1517097600000,40.6516],[1517184000000,40.6516],[1517270400000,39.7616],[1517356800000,39.5652]], 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: [[1514764800000, 37.733670],[1514764800000, 37.733670],[1514851200000, 37.733670],[1514937600000, 37.733670],[1515024000000, 37.830321],[1515110400000, 37.931524],[1515196800000, 38.219806],[1515283200000, 38.219806],[1515369600000, 38.219806],[1515456000000, 38.219806],[1515542400000, 38.124063],[1515628800000, 38.312747],[1515715200000, 38.375763],[1515801600000, 38.923071],[1515888000000, 38.923071],[1515974400000, 38.923071],[1516060800000, 39.388297],[1516147200000, 39.435179],[1516233600000, 39.496523],[1516320000000, 39.916167],[1516406400000, 40.003759],[1516492800000, 40.003759],[1516579200000, 40.003759],[1516665600000, 40.121629],[1516752000000, 40.255632],[1516838400000, 40.896162],[1516924800000, 40.975470],[1517011200000, 40.651613],[1517097600000, 40.651613],[1517184000000, 40.651613],[1517270400000, 39.761611],[1517356800000, 39.565244]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });