$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1506816000000,19.5737],[1506902400000,19.5737],[1506988800000,19.5608],[1507075200000,19.5963],[1507161600000,19.7214],[1507248000000,19.6701],[1507334400000,19.5689],[1507420800000,19.5689],[1507507200000,19.5689],[1507593600000,19.4764],[1507680000000,19.6011],[1507766400000,19.5643],[1507852800000,19.6687],[1507939200000,19.6687],[1508025600000,19.6687],[1508112000000,19.6687],[1508198400000,19.6687],[1508284800000,19.5229],[1508371200000,19.4507],[1508457600000,19.5317],[1508544000000,19.5364],[1508630400000,19.5364],[1508716800000,19.5364],[1508803200000,null],[1508889600000,19.5759],[1508976000000,19.6601],[1509062400000,19.6935],[1509148800000,19.6172],[1509235200000,19.6172],[1509321600000,19.6172],[1509408000000,19.6731]], 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, 19.573684],[1506816000000, 19.573684],[1506902400000, 19.573684],[1506988800000, 19.560813],[1507075200000, 19.596302],[1507161600000, 19.721362],[1507248000000, 19.670077],[1507334400000, 19.568942],[1507420800000, 19.568942],[1507507200000, 19.568942],[1507593600000, 19.476438],[1507680000000, 19.601100],[1507766400000, 19.564266],[1507852800000, 19.668671],[1507939200000, 19.668671],[1508025600000, 19.668671],[1508112000000, 19.668671],[1508198400000, 19.668671],[1508284800000, 19.522894],[1508371200000, 19.450746],[1508457600000, 19.531665],[1508544000000, 19.536361],[1508630400000, 19.536361],[1508716800000, 19.536361],[1508889600000, 19.575943],[1508976000000, 19.660061],[1509062400000, 19.693520],[1509148800000, 19.617173],[1509235200000, 19.617173],[1509321600000, 19.617173],[1509408000000, 19.673079]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });