Sign in to follow this  
FusionCharts Support

GWT + FusionChart Drill Down

Recommended Posts

I have some drill-down chart and I would like to integerate them with GWT.

On the updatechart js function I add:

 var chartObj = getChartFromId("CityDetails"); 
  alert("chartObj:" + chartObj.innerHTML);   
  chartObj.setDataXML("<chart><set label='A' value='10' /><set label='B' value='115' /></chart>");

The getChartFromId is working fine and get the chart object (and I alert the innerHTML to check), but the call to setDataXML does not execute and hence the chart not update.

Share this post


Link to post
Share on other sites

Hi,

Please check these:

1. Make sure you have registerWithJS setting on when rendering the chart.

2. You are ACTUALLY passing the DOMId of the chart and not the DIV to the getChartFromId function:

Note: the id is passed to the chart while defining the chart: the bold id is the chart's id.

var myChart = new FusionCharts("Column3D.swf", "myChartId", "500", "400", "0", "1");

This actually sets the id of the <object>/ <embed> element. Hence, the innerHTML of the chart would be either some <params> (in IE) or nothing at all in other browsers where <embed> is supported.

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