$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1504224000000,3.27439],[1504310400000,3.31609],[1504396800000,3.31609],[1504483200000,3.31609],[1504569600000,3.31867],[1504656000000,3.32582],[1504742400000,3.34171],[1504828800000,3.34937],[1504915200000,3.3777],[1505001600000,3.3777],[1505088000000,3.3777],[1505174400000,3.3297],[1505260800000,3.31739],[1505347200000,3.32409],[1505433600000,3.30959],[1505520000000,3.36078],[1505606400000,3.36078],[1505692800000,3.36078],[1505779200000,3.34875],[1505865600000,3.34817],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,3.33813],[1506729600000,3.33371]], 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, 3.274394],[1504224000000, 3.274394],[1504310400000, 3.316090],[1504396800000, 3.316090],[1504483200000, 3.316090],[1504569600000, 3.318669],[1504656000000, 3.325820],[1504742400000, 3.341711],[1504828800000, 3.349374],[1504915200000, 3.377697],[1505001600000, 3.377697],[1505088000000, 3.377697],[1505174400000, 3.329702],[1505260800000, 3.317387],[1505347200000, 3.324091],[1505433600000, 3.309586],[1505520000000, 3.360783],[1505606400000, 3.360783],[1505692800000, 3.360783],[1505779200000, 3.348750],[1505865600000, 3.348166],[1506643200000, 3.338129],[1506729600000, 3.333713]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });