Sign in to follow this  
richard20427176

invalid xml data

Recommended Posts

sometimes our selected-out data is tempty

 

 

 

so the charts will show default infomation as "invalid xml data"

 

 

 

I know that there's an attribute to change the default infomation..

 

 

 

but I can't remember it

 

 

 

who can tell me

 

 

 

thx..

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Richard,

FusionCharts v3 allows you to change the various messages that gets displayed to the user like "No data to display", "Loading Chart", "Retrieving data" etc.

In case you wish to change the "invalid xml data" message,  please try the following HTML code:-

Ref.- <div id="chart1div">

 This text is replaced by the chart

</div>

<script type="text/javascript">

 var chart1 = new FusionCharts("Column2D.swf?InvalidXMLText=Please select a record above", "ChId1", "300", "250", "0", "0");

 chart1.setDataXML("<chart></chart>");

 chart1.render("chart1div");

</script>

 

Also, please refer to the link below for further details on the same:-

Ref.- http://www.fusioncharts.com/docs?/ChartMessages.html

Hope this helps. :)

Share this post


Link to post
Share on other sites

thx, it's useful.

 

 

 

But the "baseFont" and the "baseFontSize" Attributes in "" element can't modify the ChartNoDataText.

 

 

 

I set the baseFont as "??",the baseFontSize as "14",ChartNoDataText as "????"

 

but the ChartNoDataText also looks like it original font face.

 

 

 

Can it's font-face be set?

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Richard,

Thanks for your appreciation.

Could you please let us know whether you want to change only font and not language?

In case you are using only language it can be done by passing that language content.

However, in case you wish to change the font face, I am afraid, FusionCharts does not support the same for Chart Messages. 

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