$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1422748800000,22.7654],[1422835200000,22.7654],[1422921600000,22.7641],[1423008000000,22.8822],[1423094400000,23.5851],[1423180800000,25.4949],[1423267200000,null],[1423353600000,32.7444],[1423440000000,32.7444],[1423526400000,35.3711],[1423612800000,35.0129],[1423699200000,35.9761],[1423785600000,35.3614],[1423872000000,36.5716],[1423958400000,36.5716],[1424044800000,36.5716],[1424131200000,36.8736],[1424217600000,37.3107],[1424304000000,37.9627],[1424390400000,38.6726],[1424476800000,39.4287],[1424563200000,39.4287],[1424649600000,39.4287],[1424736000000,40.009],[1424822400000,39.9083],[1424908800000,39.5887],[1424995200000,42.4245],[1425081600000,39.2621]], 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: [[1422748800000, 22.765409],[1422748800000, 22.765409],[1422835200000, 22.765409],[1422921600000, 22.764082],[1423008000000, 22.882209],[1423094400000, 23.585058],[1423180800000, 25.494909],[1423353600000, 32.744402],[1423440000000, 32.744402],[1423526400000, 35.371117],[1423612800000, 35.012897],[1423699200000, 35.976148],[1423785600000, 35.361363],[1423872000000, 36.571563],[1423958400000, 36.571563],[1424044800000, 36.571563],[1424131200000, 36.873579],[1424217600000, 37.310713],[1424304000000, 37.962674],[1424390400000, 38.672585],[1424476800000, 39.428683],[1424563200000, 39.428683],[1424649600000, 39.428683],[1424736000000, 40.009013],[1424822400000, 39.908335],[1424908800000, 39.588660],[1424995200000, 42.424524],[1425081600000, 39.262080]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });