$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1504224000000,26.5447],[1504310400000,26.8264],[1504396800000,26.8264],[1504483200000,26.8264],[1504569600000,27.0562],[1504656000000,27.0532],[1504742400000,27.1948],[1504828800000,27.2769],[1504915200000,27.5704],[1505001600000,27.5704],[1505088000000,27.5704],[1505174400000,27.3611],[1505260800000,27.1307],[1505347200000,27.1754],[1505433600000,27.0473],[1505520000000,27.3277],[1505606400000,27.3277],[1505692800000,27.3277],[1505779200000,27.286],[1505865600000,27.1162],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,27.257],[1506729600000,27.3881]], 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: [[1504224000000, 26.544735],[1504224000000, 26.544735],[1504310400000, 26.826391],[1504396800000, 26.826391],[1504483200000, 26.826391],[1504569600000, 27.056224],[1504656000000, 27.053229],[1504742400000, 27.194823],[1504828800000, 27.276911],[1504915200000, 27.570359],[1505001600000, 27.570359],[1505088000000, 27.570359],[1505174400000, 27.361137],[1505260800000, 27.130743],[1505347200000, 27.175369],[1505433600000, 27.047283],[1505520000000, 27.327729],[1505606400000, 27.327729],[1505692800000, 27.327729],[1505779200000, 27.286004],[1505865600000, 27.116228],[1506643200000, 27.257020],[1506729600000, 27.388123]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });