$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1506816000000,37.5633],[1506902400000,37.5633],[1506988800000,37.5641],[1507075200000,37.6301],[1507161600000,37.8303],[1507248000000,37.7582],[1507334400000,37.5928],[1507420800000,37.5928],[1507507200000,37.5928],[1507593600000,37.3281],[1507680000000,37.543],[1507766400000,37.5059],[1507852800000,37.6779],[1507939200000,37.6779],[1508025600000,37.6779],[1508112000000,37.6779],[1508198400000,37.6779],[1508284800000,37.3601],[1508371200000,37.2426],[1508457600000,37.4293],[1508544000000,37.4482],[1508630400000,37.4482],[1508716800000,37.4482],[1508803200000,null],[1508889600000,37.5654],[1508976000000,37.7218],[1509062400000,37.8532],[1509148800000,37.6793],[1509235200000,37.6793],[1509321600000,37.6793],[1509408000000,37.6557]], 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, 37.563275],[1506816000000, 37.563275],[1506902400000, 37.563275],[1506988800000, 37.564078],[1507075200000, 37.630089],[1507161600000, 37.830332],[1507248000000, 37.758212],[1507334400000, 37.592778],[1507420800000, 37.592778],[1507507200000, 37.592778],[1507593600000, 37.328143],[1507680000000, 37.543046],[1507766400000, 37.505883],[1507852800000, 37.677901],[1507939200000, 37.677901],[1508025600000, 37.677901],[1508112000000, 37.677901],[1508198400000, 37.677901],[1508284800000, 37.360121],[1508371200000, 37.242571],[1508457600000, 37.429308],[1508544000000, 37.448199],[1508630400000, 37.448199],[1508716800000, 37.448199],[1508889600000, 37.565433],[1508976000000, 37.721770],[1509062400000, 37.853226],[1509148800000, 37.679251],[1509235200000, 37.679251],[1509321600000, 37.679251],[1509408000000, 37.655654]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });