$(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: [[1527811200000,19.52],[1527897600000,19.5123],[1527984000000,19.5123],[1528070400000,19.5123],[1528156800000,19.5926],[1528243200000,19.584],[1528329600000,19.6239],[1528416000000,19.6591],[1528502400000,19.5649],[1528588800000,19.5649],[1528675200000,19.5649],[1528761600000,19.5473],[1528848000000,19.5399],[1528934400000,19.5611],[1529020800000,19.6334],[1529107200000,19.5374],[1529193600000,19.5374],[1529280000000,19.5374],[1529366400000,19.4999],[1529452800000,19.4474],[1529539200000,null],[1529625600000,19.3147],[1529712000000,19.3168],[1529798400000,19.3168],[1529884800000,19.3168],[1529971200000,19.2236],[1530057600000,19.2348],[1530144000000,19.3141],[1530230400000,19.3141],[1530316800000,19.3141]], 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: [[1527811200000, 19.519986],[1527811200000, 19.519986],[1527897600000, 19.512302],[1527984000000, 19.512302],[1528070400000, 19.512302],[1528156800000, 19.592562],[1528243200000, 19.584028],[1528329600000, 19.623859],[1528416000000, 19.659072],[1528502400000, 19.564860],[1528588800000, 19.564860],[1528675200000, 19.564860],[1528761600000, 19.547347],[1528848000000, 19.539925],[1528934400000, 19.561149],[1529020800000, 19.633375],[1529107200000, 19.537425],[1529193600000, 19.537425],[1529280000000, 19.537425],[1529366400000, 19.499906],[1529452800000, 19.447448],[1529625600000, 19.314707],[1529712000000, 19.316820],[1529798400000, 19.316820],[1529884800000, 19.316820],[1529971200000, 19.223566],[1530057600000, 19.234835],[1530144000000, 19.314145],[1530230400000, 19.314145],[1530316800000, 19.314145]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });