No data message with PHP class

Recommended Posts

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

        $strParam="caption=something;xAxisName=Days;enableSmartLabels=0; showvalues=0; formatNumberScale=0;";
        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?





Share this post

Link to post
Share on other sites
Guest Sashibhusan



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:


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