$(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: [[1451606400000,35.5332],[1451692800000,35.5332],[1451779200000,35.5332],[1451865600000,35.5332],[1451952000000,35.5332],[1452038400000,34.8986],[1452124800000,34.3772],[1452211200000,34.3772],[1452297600000,34.3772],[1452384000000,34.3772],[1452470400000,34.3772],[1452556800000,34.2568],[1452643200000,33.58],[1452729600000,34.0858],[1452816000000,34.4631],[1452902400000,34.666],[1452988800000,34.9462],[1453075200000,34.9462],[1453161600000,35.1871],[1453248000000,35.3076],[1453334400000,34.9322],[1453420800000,34.6085],[1453507200000,35.5098],[1453593600000,35.5098],[1453680000000,35.5098],[1453766400000,35.3847],[1453852800000,35.3884],[1453939200000,35.6466],[1454025600000,35.9749],[1454112000000,36.5215],[1454198400000,36.5215]], 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: [[1451606400000, 35.533176],[1451606400000, 35.533176],[1451692800000, 35.533176],[1451779200000, 35.533176],[1451865600000, 35.533176],[1451952000000, 35.533176],[1452038400000, 34.898552],[1452124800000, 34.377175],[1452211200000, 34.377175],[1452297600000, 34.377175],[1452384000000, 34.377175],[1452470400000, 34.377175],[1452556800000, 34.256814],[1452643200000, 33.579993],[1452729600000, 34.085769],[1452816000000, 34.463069],[1452902400000, 34.665958],[1452988800000, 34.946242],[1453075200000, 34.946242],[1453161600000, 35.187114],[1453248000000, 35.307580],[1453334400000, 34.932207],[1453420800000, 34.608492],[1453507200000, 35.509841],[1453593600000, 35.509841],[1453680000000, 35.509841],[1453766400000, 35.384699],[1453852800000, 35.388414],[1453939200000, 35.646643],[1454025600000, 35.974935],[1454112000000, 36.521518],[1454198400000, 36.521518]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });