Sign in to follow this  
JohnLeg

Add Background Image To Chartnodata Message

Recommended Posts

I know how to change the ChartNoDataText message but I also want to include a background image with the message, a red circle plus the message

I tried using the following but it displays the entire string and doesn't apply the css class

<style>

.nodata

{

background:url(../images/nodata.gif) no-repeat;

}

</style>

...

chartIncomplete.configure("ChartNoDataText", chartIncomplete.configure("ChartNoDataText", "<span class='nodata'>No Data</span>");

 

Is there a way to affect the background of the no data message? I'm using flash to render the chart.

 

Thanks

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

I am afraid, you will not be able to set image as background for chart messages.

 

However, you may set background color for the chart when these messages are shown.

 

Ref. Code:

var myChart = new FusionCharts("Column2D.swf", "myChartId", "300", "250", "0", "1", "#DCD8EB");
 myChart.setXMLUrl("<chart></chart>");
 myChart.configure("ChartNoDataText", "Please select a record above");
 myChart.render("chartContainer");

For more details, please refer to the link below,

http://docs.fusionch...rtMessages.html

 

Hope this helps!

Edited by Bindhu

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