$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1477958400000,0.09055],[1478044800000,null],[1478131200000,0.092051],[1478217600000,0.091978],[1478304000000,0.092678],[1478390400000,0.092678],[1478476800000,0.092678],[1478563200000,0.092424],[1478649600000,0.092341],[1478736000000,0.09239],[1478822400000,0.090691],[1478908800000,0.090371],[1478995200000,0.090371],[1479081600000,0.090371],[1479168000000,0.089485],[1479254400000,0.090337],[1479340800000,0.090779],[1479427200000,0.090256],[1479513600000,0.088934],[1479600000000,0.088934],[1479686400000,0.088934],[1479772800000,0.088671],[1479859200000,0.088193],[1479945600000,0.087498],[1480032000000,0.086936],[1480118400000,0.088085],[1480204800000,0.088085],[1480291200000,0.088085],[1480377600000,0.087456],[1480464000000,0.08692]], 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, 0.090550],[1477958400000, 0.090550],[1478131200000, 0.092051],[1478217600000, 0.091978],[1478304000000, 0.092678],[1478390400000, 0.092678],[1478476800000, 0.092678],[1478563200000, 0.092424],[1478649600000, 0.092341],[1478736000000, 0.092390],[1478822400000, 0.090691],[1478908800000, 0.090371],[1478995200000, 0.090371],[1479081600000, 0.090371],[1479168000000, 0.089485],[1479254400000, 0.090337],[1479340800000, 0.090779],[1479427200000, 0.090256],[1479513600000, 0.088934],[1479600000000, 0.088934],[1479686400000, 0.088934],[1479772800000, 0.088671],[1479859200000, 0.088193],[1479945600000, 0.087498],[1480032000000, 0.086936],[1480118400000, 0.088085],[1480204800000, 0.088085],[1480291200000, 0.088085],[1480377600000, 0.087456],[1480464000000, 0.086920]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });