$(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: [[1477958400000,31.0152],[1478044800000,null],[1478131200000,31.4861],[1478217600000,31.9408],[1478304000000,31.9472],[1478390400000,31.9472],[1478476800000,31.9472],[1478563200000,31.768],[1478649600000,31.6729],[1478736000000,31.646],[1478822400000,31.7474],[1478908800000,32.4468],[1478995200000,32.4468],[1479081600000,32.4468],[1479168000000,32.2755],[1479254400000,32.3203],[1479340800000,32.7432],[1479427200000,32.4461],[1479513600000,31.9238],[1479600000000,31.9238],[1479686400000,31.9238],[1479772800000,31.9752],[1479859200000,31.8908],[1479945600000,31.7684],[1480032000000,31.8281],[1480118400000,31.9872],[1480204800000,31.9872],[1480291200000,31.9872],[1480377600000,31.8492],[1480464000000,31.9211]], 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: [[1477958400000, 31.015212],[1477958400000, 31.015212],[1478131200000, 31.486128],[1478217600000, 31.940846],[1478304000000, 31.947199],[1478390400000, 31.947199],[1478476800000, 31.947199],[1478563200000, 31.768034],[1478649600000, 31.672874],[1478736000000, 31.646029],[1478822400000, 31.747412],[1478908800000, 32.446782],[1478995200000, 32.446782],[1479081600000, 32.446782],[1479168000000, 32.275519],[1479254400000, 32.320300],[1479340800000, 32.743174],[1479427200000, 32.446075],[1479513600000, 31.923820],[1479600000000, 31.923820],[1479686400000, 31.923820],[1479772800000, 31.975244],[1479859200000, 31.890819],[1479945600000, 31.768405],[1480032000000, 31.828148],[1480118400000, 31.987171],[1480204800000, 31.987171],[1480291200000, 31.987171],[1480377600000, 31.849174],[1480464000000, 31.921120]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });