$(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: [[1522540800000,37.0476],[1522627200000,37.0476],[1522713600000,36.8418],[1522800000000,37.0262],[1522886400000,36.8156],[1522972800000,36.5668],[1523059200000,36.4756],[1523145600000,36.4756],[1523232000000,36.4756],[1523318400000,36.4756],[1523404800000,36.8287],[1523491200000,36.7521],[1523577600000,36.9162],[1523664000000,37.2431],[1523750400000,37.2431],[1523836800000,37.2431],[1523923200000,37.3243],[1524009600000,37.3558],[1524096000000,37.1871],[1524182400000,37.336],[1524268800000,36.781],[1524355200000,36.781],[1524441600000,36.781],[1524528000000,36.4816],[1524614400000,36.5508],[1524700800000,36.6339],[1524787200000,36.6438],[1524873600000,36.0526],[1524960000000,36.0526],[1525046400000,36.0526]], 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: [[1522540800000, 37.047561],[1522540800000, 37.047561],[1522627200000, 37.047561],[1522713600000, 36.841832],[1522800000000, 37.026190],[1522886400000, 36.815604],[1522972800000, 36.566822],[1523059200000, 36.475620],[1523145600000, 36.475620],[1523232000000, 36.475620],[1523318400000, 36.475620],[1523404800000, 36.828681],[1523491200000, 36.752117],[1523577600000, 36.916225],[1523664000000, 37.243114],[1523750400000, 37.243114],[1523836800000, 37.243114],[1523923200000, 37.324279],[1524009600000, 37.355825],[1524096000000, 37.187142],[1524182400000, 37.336002],[1524268800000, 36.780956],[1524355200000, 36.780956],[1524441600000, 36.780956],[1524528000000, 36.481576],[1524614400000, 36.550844],[1524700800000, 36.633851],[1524787200000, 36.643767],[1524873600000, 36.052619],[1524960000000, 36.052619],[1525046400000, 36.052619]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });