Sign in to follow this  
nimrod

Update Chart On Drill-Down

Recommended Posts

Hi,

 

So I have a drill-down chart and I update it using setXMLUrl(); When on the 1st level of the chart it works fine but if I'm inside the child chart, when I call the update, nothing happens.

 

So is there a way to either: update the child chart or reset back to the parent chart?

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

Updating the child chart only is not possible.

 

If you update the chart using setXMLUrl() function, the entire XML data of the chart will be updated and it will re-render the parent chart with updated XML data.

 

So, you can update the child chart by providing the embedded decedent data in parent data using setXMLUrl() function.

 

Ref. Code:

 

<script type="text/javascript">

function updateChart()
         {
             var chartReference = FusionCharts( "myChartId" ); 

         chartReference.setXMLUrl("data1.xml");

         chartReference.render("chartContainer");
         }

</script>  
<input type="button" value="update" OnClick="updateChart()"/>

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