$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1506816000000,21.3649],[1506902400000,21.3649],[1506988800000,21.3048],[1507075200000,21.3623],[1507161600000,21.5285],[1507248000000,21.4727],[1507334400000,21.2652],[1507420800000,21.2652],[1507507200000,21.2652],[1507593600000,21.1714],[1507680000000,21.2707],[1507766400000,21.2116],[1507852800000,21.3582],[1507939200000,21.3582],[1508025600000,21.3582],[1508112000000,21.3582],[1508198400000,21.3582],[1508284800000,21.1267],[1508371200000,21.0919],[1508457600000,21.2711],[1508544000000,21.2419],[1508630400000,21.2419],[1508716800000,21.2419],[1508803200000,null],[1508889600000,21.0867],[1508976000000,21.0843],[1509062400000,20.9623],[1509148800000,20.8471],[1509235200000,20.8471],[1509321600000,20.8471],[1509408000000,20.8837]], 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, 21.364862],[1506816000000, 21.364862],[1506902400000, 21.364862],[1506988800000, 21.304818],[1507075200000, 21.362264],[1507161600000, 21.528504],[1507248000000, 21.472664],[1507334400000, 21.265157],[1507420800000, 21.265157],[1507507200000, 21.265157],[1507593600000, 21.171421],[1507680000000, 21.270749],[1507766400000, 21.211588],[1507852800000, 21.358168],[1507939200000, 21.358168],[1508025600000, 21.358168],[1508112000000, 21.358168],[1508198400000, 21.358168],[1508284800000, 21.126736],[1508371200000, 21.091902],[1508457600000, 21.271139],[1508544000000, 21.241906],[1508630400000, 21.241906],[1508716800000, 21.241906],[1508889600000, 21.086746],[1508976000000, 21.084341],[1509062400000, 20.962253],[1509148800000, 20.847098],[1509235200000, 20.847098],[1509321600000, 20.847098],[1509408000000, 20.883689]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });