Sign in to follow this  
pavanraj21

Adding ChartNoDataText for chart

Recommended Posts

When i used ChartNoDataText in the below mentioned line its fine

 

 

 

echo renderChart("../../fusioncharts/MSColumn3D.swf?ChartNoDataText=Details are not available", "", "", "Details", 400, 250, false, true);

 

 

 

Then after for the 'Details' id i have added a dynamic chart using javascript by using setDataURl

 

 

var attempschartObj = getChartFromId("Details");

 

attempschartObj.setDataURL(strURL);

 

 

 

Then after going to required page

 

$FC = new FusionCharts("MSColumn3D",750,300);

 

$FC->setSWFPath("../../fusioncharts");

 

$Param = "caption=Employee Details ;xAxisName=Forms Submitted";

 

$FC->setChartParams($Param);

 

$FC->setChartMessage("ChartNoDataText=Employee has not submitted his form still ;PBarLoadingText=Please Wait.The chart is loading...");

 

 

 

 

now i have no data to display in the chart. Then it has to display 'Employee has not submitted his form still' instead its showing 'Details are not available' message in the chart. How can i change the message with the new one.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this