$(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: [[1506816000000,35.5855],[1506902400000,35.5855],[1506988800000,35.4036],[1507075200000,35.3467],[1507161600000,35.5979],[1507248000000,35.2968],[1507334400000,34.9634],[1507420800000,34.9634],[1507507200000,34.9634],[1507593600000,34.9657],[1507680000000,35.0785],[1507766400000,34.9893],[1507852800000,34.9953],[1507939200000,34.9953],[1508025600000,34.9953],[1508112000000,34.9953],[1508198400000,34.9953],[1508284800000,34.934],[1508371200000,34.774],[1508457600000,34.9163],[1508544000000,34.9951],[1508630400000,34.9951],[1508716800000,34.9951],[1508803200000,null],[1508889600000,35.1237],[1508976000000,35.4944],[1509062400000,35.4222],[1509148800000,35.1893],[1509235200000,35.1893],[1509321600000,35.1893],[1509408000000,35.4106]], 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: [[1506816000000, 35.585489],[1506816000000, 35.585489],[1506902400000, 35.585489],[1506988800000, 35.403616],[1507075200000, 35.346748],[1507161600000, 35.597894],[1507248000000, 35.296837],[1507334400000, 34.963352],[1507420800000, 34.963352],[1507507200000, 34.963352],[1507593600000, 34.965661],[1507680000000, 35.078537],[1507766400000, 34.989308],[1507852800000, 34.995347],[1507939200000, 34.995347],[1508025600000, 34.995347],[1508112000000, 34.995347],[1508198400000, 34.995347],[1508284800000, 34.933954],[1508371200000, 34.774011],[1508457600000, 34.916262],[1508544000000, 34.995118],[1508630400000, 34.995118],[1508716800000, 34.995118],[1508889600000, 35.123718],[1508976000000, 35.494413],[1509062400000, 35.422228],[1509148800000, 35.189313],[1509235200000, 35.189313],[1509321600000, 35.189313],[1509408000000, 35.410647]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });