$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1483228800000,1.05187],[1483315200000,1.05187],[1483401600000,1.05187],[1483488000000,1.05187],[1483574400000,1.03101],[1483660800000,1.03101],[1483747200000,1.0589],[1483833600000,1.0589],[1483920000000,1.0589],[1484006400000,1.0589],[1484092800000,1.06319],[1484179200000,1.05388],[1484265600000,1.07702],[1484352000000,null],[1484438400000,1.09168],[1484524800000,1.09168],[1484611200000,1.08687],[1484697600000,1.09247],[1484784000000,1.08498],[1484870400000,1.08343],[1484956800000,1.07923],[1485043200000,1.07923],[1485129600000,1.07923],[1485216000000,1.08361],[1485302400000,1.08319],[1485388800000,1.0817],[1485475200000,1.07761],[1485561600000,1.07487],[1485648000000,1.07487],[1485734400000,1.07487],[1485820800000,1.06682]], 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: [[1483228800000, 1.051871],[1483228800000, 1.051871],[1483315200000, 1.051871],[1483401600000, 1.051871],[1483488000000, 1.051871],[1483574400000, 1.031006],[1483660800000, 1.031006],[1483747200000, 1.058897],[1483833600000, 1.058897],[1483920000000, 1.058897],[1484006400000, 1.058897],[1484092800000, 1.063185],[1484179200000, 1.053884],[1484265600000, 1.077015],[1484438400000, 1.091676],[1484524800000, 1.091676],[1484611200000, 1.086866],[1484697600000, 1.092471],[1484784000000, 1.084983],[1484870400000, 1.083428],[1484956800000, 1.079234],[1485043200000, 1.079234],[1485129600000, 1.079234],[1485216000000, 1.083612],[1485302400000, 1.083189],[1485388800000, 1.081700],[1485475200000, 1.077606],[1485561600000, 1.074869],[1485648000000, 1.074869],[1485734400000, 1.074869],[1485820800000, 1.066817]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });