$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1506816000000,0.101003],[1506902400000,0.101003],[1506988800000,0.100511],[1507075200000,0.100578],[1507161600000,0.101541],[1507248000000,0.101047],[1507334400000,0.100541],[1507420800000,0.100541],[1507507200000,0.100541],[1507593600000,0.099858],[1507680000000,0.100962],[1507766400000,0.101277],[1507852800000,0.102135],[1507939200000,0.102135],[1508025600000,0.102135],[1508112000000,0.102135],[1508198400000,0.102135],[1508284800000,0.101327],[1508371200000,0.100715],[1508457600000,0.10165],[1508544000000,0.101787],[1508630400000,0.101787],[1508716800000,0.101787],[1508803200000,null],[1508889600000,0.101665],[1508976000000,0.101717],[1509062400000,0.101603],[1509148800000,0.100213],[1509235200000,0.100213],[1509321600000,0.100213],[1509408000000,0.100171]], 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, 0.101003],[1506816000000, 0.101003],[1506902400000, 0.101003],[1506988800000, 0.100511],[1507075200000, 0.100578],[1507161600000, 0.101541],[1507248000000, 0.101047],[1507334400000, 0.100541],[1507420800000, 0.100541],[1507507200000, 0.100541],[1507593600000, 0.099858],[1507680000000, 0.100962],[1507766400000, 0.101277],[1507852800000, 0.102135],[1507939200000, 0.102135],[1508025600000, 0.102135],[1508112000000, 0.102135],[1508198400000, 0.102135],[1508284800000, 0.101327],[1508371200000, 0.100715],[1508457600000, 0.101650],[1508544000000, 0.101787],[1508630400000, 0.101787],[1508716800000, 0.101787],[1508889600000, 0.101665],[1508976000000, 0.101717],[1509062400000, 0.101603],[1509148800000, 0.100213],[1509235200000, 0.100213],[1509321600000, 0.100213],[1509408000000, 0.100171]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });