$(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: [[1183248000000,10.0842],[1183334400000,10.0842],[1183420800000,10.1561],[1183507200000,10.1741],[1183593600000,10.183],[1183680000000,10.1957],[1183766400000,10.1515],[1183852800000,10.1515],[1183939200000,10.1515],[1184025600000,10.1709],[1184112000000,10.1887],[1184198400000,10.2596],[1184284800000,10.2653],[1184371200000,10.2661],[1184457600000,10.2661],[1184544000000,10.2661],[1184630400000,10.2866],[1184716800000,10.3303],[1184803200000,10.3548],[1184889600000,10.3463],[1184976000000,10.3697],[1185062400000,10.3697],[1185148800000,10.3697],[1185235200000,10.3933],[1185321600000,10.4155],[1185408000000,10.3732],[1185494400000,10.3304],[1185580800000,10.2586],[1185667200000,10.2586],[1185753600000,10.2586]], 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: [[1183248000000, 10.084241],[1183248000000, 10.084241],[1183334400000, 10.084241],[1183420800000, 10.156057],[1183507200000, 10.174056],[1183593600000, 10.183001],[1183680000000, 10.195678],[1183766400000, 10.151519],[1183852800000, 10.151519],[1183939200000, 10.151519],[1184025600000, 10.170937],[1184112000000, 10.188721],[1184198400000, 10.259643],[1184284800000, 10.265281],[1184371200000, 10.266111],[1184457600000, 10.266111],[1184544000000, 10.266111],[1184630400000, 10.286609],[1184716800000, 10.330296],[1184803200000, 10.354754],[1184889600000, 10.346305],[1184976000000, 10.369704],[1185062400000, 10.369704],[1185148800000, 10.369704],[1185235200000, 10.393277],[1185321600000, 10.415484],[1185408000000, 10.373238],[1185494400000, 10.330367],[1185580800000, 10.258564],[1185667200000, 10.258564],[1185753600000, 10.258564]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });