$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1422748800000,16.1578],[1422835200000,16.1578],[1422921600000,16.147],[1423008000000,16.2414],[1423094400000,16.7289],[1423180800000,17.9998],[1423267200000,null],[1423353600000,23.1306],[1423440000000,23.1306],[1423526400000,24.9562],[1423612800000,24.8405],[1423699200000,25.5581],[1423785600000,25.0991],[1423872000000,25.9185],[1423958400000,25.9185],[1424044800000,25.9185],[1424131200000,26.0499],[1424217600000,26.3587],[1424304000000,26.7997],[1424390400000,27.358],[1424476800000,27.8585],[1424563200000,27.8585],[1424649600000,27.8585],[1424736000000,28.3481],[1424822400000,28.2912],[1424908800000,28.046],[1424995200000,30.0102],[1425081600000,27.7631]], 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, 16.157817],[1422748800000, 16.157817],[1422835200000, 16.157817],[1422921600000, 16.146996],[1423008000000, 16.241449],[1423094400000, 16.728929],[1423180800000, 17.999763],[1423353600000, 23.130580],[1423440000000, 23.130580],[1423526400000, 24.956198],[1423612800000, 24.840495],[1423699200000, 25.558067],[1423785600000, 25.099142],[1423872000000, 25.918523],[1423958400000, 25.918523],[1424044800000, 25.918523],[1424131200000, 26.049893],[1424217600000, 26.358713],[1424304000000, 26.799674],[1424390400000, 27.357992],[1424476800000, 27.858494],[1424563200000, 27.858494],[1424649600000, 27.858494],[1424736000000, 28.348066],[1424822400000, 28.291218],[1424908800000, 28.046032],[1424995200000, 30.010175],[1425081600000, 27.763120]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });