bionary

No data message with PHP class

Recommended Posts

I currently am using the php class to render my fusion chartl

...
        $chart->setSWFPath("/FusionCharts/");
        $strParam="caption=something;xAxisName=Days;enableSmartLabels=0; showvalues=0; formatNumberScale=0;";
        $chart->setChartParams($strParam);
        return $chart->renderChart(0,0);

I would like to change the default message: "No data to display" to something more specific when there is no data.

 

How do I do this using the PHP class?

 

Thanks

 

 

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

You could set various chart messages using the "setChartMessage(string $msgParam)" PHP class method. Please note that the $msgParam will hold the chart message attributes separated by delimiters, as mentioned below.

 

Ref. Code:

$FC->setChartMessage("ChartNoDataText=Chart Data not provided;PBarLoadingText=Please Wait.The chart is loading...");

For more information on this, please visit the link: http://docs.fusioncharts.com/charts/contents/guide-for-web-developers/fusioncharts-php-class/Functions.html

 

Hope this helps!

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