$(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: [[1525132800000,36.0526],[1525219200000,36.0526],[1525305600000,35.6706],[1525392000000,35.619],[1525478400000,35.6832],[1525564800000,35.6832],[1525651200000,35.6832],[1525737600000,35.5534],[1525824000000,35.3941],[1525910400000,35.3941],[1525996800000,35.43],[1526083200000,35.5281],[1526169600000,35.5281],[1526256000000,35.5281],[1526342400000,35.5554],[1526428800000,35.4338],[1526515200000,35.3288],[1526601600000,35.3931],[1526688000000,35.2762],[1526774400000,35.2762],[1526860800000,35.2762],[1526947200000,34.9974],[1527033600000,35.0656],[1527120000000,34.7188],[1527206400000,35.003],[1527292800000,34.8749],[1527379200000,34.8749],[1527465600000,34.8749],[1527552000000,34.8749],[1527638400000,34.6157],[1527724800000,34.7442]], 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, 36.052619],[1525132800000, 36.052619],[1525219200000, 36.052619],[1525305600000, 35.670592],[1525392000000, 35.618973],[1525478400000, 35.683209],[1525564800000, 35.683209],[1525651200000, 35.683209],[1525737600000, 35.553443],[1525824000000, 35.394061],[1525910400000, 35.394061],[1525996800000, 35.429960],[1526083200000, 35.528073],[1526169600000, 35.528073],[1526256000000, 35.528073],[1526342400000, 35.555401],[1526428800000, 35.433791],[1526515200000, 35.328774],[1526601600000, 35.393125],[1526688000000, 35.276170],[1526774400000, 35.276170],[1526860800000, 35.276170],[1526947200000, 34.997402],[1527033600000, 35.065609],[1527120000000, 34.718837],[1527206400000, 35.003025],[1527292800000, 34.874948],[1527379200000, 34.874948],[1527465600000, 34.874948],[1527552000000, 34.874948],[1527638400000, 34.615699],[1527724800000, 34.744208]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });