$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1514764800000,39.8751],[1514851200000,39.8751],[1514937600000,39.8751],[1515024000000,39.7805],[1515110400000,39.9973],[1515196800000,40.2494],[1515283200000,40.2494],[1515369600000,40.2494],[1515456000000,40.2494],[1515542400000,40.0938],[1515628800000,40.4074],[1515715200000,40.4766],[1515801600000,40.8916],[1515888000000,40.8916],[1515974400000,40.8916],[1516060800000,40.9361],[1516147200000,41.221],[1516233600000,41.2381],[1516320000000,41.4564],[1516406400000,41.6168],[1516492800000,41.6168],[1516579200000,41.6168],[1516665600000,41.6419],[1516752000000,41.6205],[1516838400000,41.8393],[1516924800000,41.816],[1517011200000,41.5558],[1517097600000,41.5558],[1517184000000,41.5558],[1517270400000,41.0337],[1517356800000,40.7571]], 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, 39.875068],[1514764800000, 39.875068],[1514851200000, 39.875068],[1514937600000, 39.875068],[1515024000000, 39.780491],[1515110400000, 39.997324],[1515196800000, 40.249416],[1515283200000, 40.249416],[1515369600000, 40.249416],[1515456000000, 40.249416],[1515542400000, 40.093775],[1515628800000, 40.407390],[1515715200000, 40.476616],[1515801600000, 40.891636],[1515888000000, 40.891636],[1515974400000, 40.891636],[1516060800000, 40.936096],[1516147200000, 41.220975],[1516233600000, 41.238104],[1516320000000, 41.456380],[1516406400000, 41.616806],[1516492800000, 41.616806],[1516579200000, 41.616806],[1516665600000, 41.641856],[1516752000000, 41.620451],[1516838400000, 41.839262],[1516924800000, 41.815953],[1517011200000, 41.555816],[1517097600000, 41.555816],[1517184000000, 41.555816],[1517270400000, 41.033675],[1517356800000, 40.757133]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });