$(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: [[1241136000000,0.0352803],[1241222400000,0.0352803],[1241308800000,null],[1241395200000,0.0352803],[1241481600000,0.0352803],[1241568000000,0.0364341],[1241654400000,0.0358883],[1241740800000,0.0372753],[1241827200000,0.0370917],[1241913600000,0.0370917],[1242000000000,0.0370917],[1242086400000,0.0370917],[1242172800000,0.0375745],[1242259200000,0.0369095],[1242345600000,0.0356875],[1242432000000,0.0356032],[1242518400000,0.0356032],[1242604800000,0.0356032],[1242691200000,0.0361933],[1242777600000,0.0372904],[1242864000000,0.0375254],[1242950400000,0.0376688],[1243036800000,0.0382236],[1243123200000,0.0382236],[1243209600000,0.0382236],[1243296000000,0.0380247],[1243382400000,0.037519],[1243468800000,0.0374445],[1243555200000,0.0370733],[1243641600000,0.0380224],[1243728000000,0.0380224]], 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: [[1241136000000, 0.035280],[1241136000000, 0.035280],[1241222400000, 0.035280],[1241395200000, 0.035280],[1241481600000, 0.035280],[1241568000000, 0.036434],[1241654400000, 0.035888],[1241740800000, 0.037275],[1241827200000, 0.037092],[1241913600000, 0.037092],[1242000000000, 0.037092],[1242086400000, 0.037092],[1242172800000, 0.037574],[1242259200000, 0.036909],[1242345600000, 0.035687],[1242432000000, 0.035603],[1242518400000, 0.035603],[1242604800000, 0.035603],[1242691200000, 0.036193],[1242777600000, 0.037290],[1242864000000, 0.037525],[1242950400000, 0.037669],[1243036800000, 0.038224],[1243123200000, 0.038224],[1243209600000, 0.038224],[1243296000000, 0.038025],[1243382400000, 0.037519],[1243468800000, 0.037444],[1243555200000, 0.037073],[1243641600000, 0.038022],[1243728000000, 0.038022]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });