s4553711
12/5/2013 - 9:10 AM

Add center text on the charts if there is no data in highcharts

Add center text on the charts if there is no data in highcharts

var ele = $('#canvas').highcharts();
var textWidth = ele.chartWidth;
$('#canvas').highcharts().renderer.text("No Data Available.",(textWidth/2)-65,115).css({
	color: '#4572A7',
	fontSize: '16px',
	textAlign: 'center',
}).attr({zIndex: 9999999}).add();