Sign in to follow this  
TalksAllot

Linked Charts Using Master Page

Recommended Posts

I have a Column3D chart setup to drill down to anotherColumn3D chart which works as expected. When I try to add another Column3dchart that I want to drill down to a Pie3D chart it will open the Column3Dchart rather than the Pie3D chart. Should this work?

 

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

Welcome to FusionCharts Forum.

 

With regard to your query,

 

Are you calling configureLink function before rendering the charts?

 

Please note, you would need to call configureLink function after the chart has been rendered.

 

If this doesn't help, please paste your sample code here.

 

 

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

Thanks for sharing the sample project with us.

 

Here in this scenario, you are calling configureLink function before rendering the charts.

 

Please note, you would need to call this function after rendering the chart. You would need to modify your code in Default.aspx page as below:

 

Ref. Code:

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

<script type="text/javascript" src="FusionCharts/FusionCharts.js"></script>

 

// FIRST RENDER THE CHARTS WITH LITERAL

<asp:Literal ID="linkedChart" runat="server"></asp:Literal>

<asp:Literal ID="linkedChart2" runat="server"></asp:Literal>

 

// CALL CONFIGURE FUNCTION AFTER RENDERING THE CHARTS

<script type="text/javascript">

var chartRef = FusionCharts("myChartId");

chartRef.configureLink({

swfUrl: "FusionCharts/Pie3D.swf",

overlayButton:

{

message: 'close',

fontColor: '880000',

bgColor: 'FFEEEE',

borderColor: '660000'

}

}, 0);

 

var chartRef = FusionCharts("myChartId2");

chartRef.configureLink({

swfUrl: "FusionCharts/Column3D.swf",

overlayButton:

{

message: 'close',

fontColor: '880000',

bgColor: 'FFEEEE',

borderColor: '660000'

}

}, 0);

 

</script>

</asp:Content>

 

Also, the .SWF file's path in the configureLink function for Pie3D chart and Column3D chart was incorrect. As, all the SWF files are present in the FusionCharts folder according to your project directory structure.

 

Please find attached modified sample project for your reference.

 

Hope this helps!

Mod_SampleProject.zip

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