ā—¸Script
function chartReadyHandler(id)
{
document.getElementById(id).setLayout(layoutStr);
document.getElementById(id).setData(chartData);
checkData(chartData); checks whether or not data exists
}
hasNoData(false); - If you don't want to display the chart when no data exists,
set the parameter to "false".
hasNoData(true); - If you want to display the chart when no data exists,
set the parameter to "true".
function checkData(data){
if(data.length <= 0) Pops up notice message when no data exists.
document.getElementById("chart1").hasNoData(true);
}