$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1504224000000,4.08463],[1504310400000,4.1265],[1504396800000,4.1265],[1504483200000,4.1265],[1504569600000,4.14696],[1504656000000,4.14886],[1504742400000,4.16697],[1504828800000,4.18438],[1504915200000,4.22623],[1505001600000,4.22623],[1505088000000,4.22623],[1505174400000,4.19407],[1505260800000,4.17317],[1505347200000,4.19881],[1505433600000,4.1793],[1505520000000,4.21619],[1505606400000,4.21619],[1505692800000,4.21619],[1505779200000,4.20349],[1505865600000,4.20332],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,4.19835],[1506729600000,4.21625]], 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, 4.084629],[1504224000000, 4.084629],[1504310400000, 4.126499],[1504396800000, 4.126499],[1504483200000, 4.126499],[1504569600000, 4.146964],[1504656000000, 4.148858],[1504742400000, 4.166975],[1504828800000, 4.184376],[1504915200000, 4.226230],[1505001600000, 4.226230],[1505088000000, 4.226230],[1505174400000, 4.194072],[1505260800000, 4.173175],[1505347200000, 4.198807],[1505433600000, 4.179298],[1505520000000, 4.216188],[1505606400000, 4.216188],[1505692800000, 4.216188],[1505779200000, 4.203488],[1505865600000, 4.203318],[1506643200000, 4.198347],[1506729600000, 4.216247]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });