Sign in to follow this  
steveddei

How to update multiple drilldown frames from one chart click?

Recommended Posts

I have multiple frames which include charts. When I click on one, I can easly update a signle frame with another chart.

My objective is to update multiple charts from click on one chart. I am using PHP /Class to construct my chart and data set. Currently my link looks something like this:

$FC->addChartData($row['Total_Qty'], "link=F-otdDd-frame_ddpage.php?period=$periods");

How do I update multiple frames from the same click?

http://www.fusioncharts.com/widgets/docs/Contents/DrillDown/Frames.html

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Steve,

FusionCharts allows to open one link in specified frames at one click.

In case you wish to update multiple frames at one click, you need to use the javascript drill-down functionality for the same.

Please refer to the steps mentioned below to update multiple charts from click on one chart:-

1) Use the link attribute in the <set> element of the parent chart using j-{user function name}-{parameter} notation.

Ref.- <set label='USA' value='235' link="j-updateFrames()" />

Please refer to the link below for further details on the same:-

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

2) Try using native javascript codes to update multiple links with on click on the parent chart.

 

Ref.-  function updateFrames()

{

parent.frame1.location="page3.htm";

parent.frame2.location="page4.htm";

}

3) Try calling the javascript function in the "link" attrbute of the <set> element of the parent chart to update multiple frames at one click.

I 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
Sign in to follow this