$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1506816000000,20.815],[1506902400000,20.815],[1506988800000,20.8188],[1507075200000,20.8694],[1507161600000,21.086],[1507248000000,20.9578],[1507334400000,20.7865],[1507420800000,20.7865],[1507507200000,20.7865],[1507593600000,20.5968],[1507680000000,20.6953],[1507766400000,20.6696],[1507852800000,20.8093],[1507939200000,20.8093],[1508025600000,20.8093],[1508112000000,20.8093],[1508198400000,20.8093],[1508284800000,20.7703],[1508371200000,20.6858],[1508457600000,20.8608],[1508544000000,20.8327],[1508630400000,20.8327],[1508716800000,20.8327],[1508803200000,null],[1508889600000,20.7492],[1508976000000,20.6442],[1509062400000,20.6777],[1509148800000,20.5247],[1509235200000,20.5247],[1509321600000,20.5247],[1509408000000,20.5666]], 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: [[1506816000000, 20.814973],[1506816000000, 20.814973],[1506902400000, 20.814973],[1506988800000, 20.818814],[1507075200000, 20.869365],[1507161600000, 21.086039],[1507248000000, 20.957835],[1507334400000, 20.786479],[1507420800000, 20.786479],[1507507200000, 20.786479],[1507593600000, 20.596765],[1507680000000, 20.695295],[1507766400000, 20.669635],[1507852800000, 20.809260],[1507939200000, 20.809260],[1508025600000, 20.809260],[1508112000000, 20.809260],[1508198400000, 20.809260],[1508284800000, 20.770256],[1508371200000, 20.685775],[1508457600000, 20.860800],[1508544000000, 20.832730],[1508630400000, 20.832730],[1508716800000, 20.832730],[1508889600000, 20.749179],[1508976000000, 20.644221],[1509062400000, 20.677679],[1509148800000, 20.524706],[1509235200000, 20.524706],[1509321600000, 20.524706],[1509408000000, 20.566601]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });