alm

Combo 2Y2D + Drilldown Doesn't Work?

Recommended Posts

I'm using FusionCharts v3 Evaluation version.

 

I am attempting to build a Combination 2D Dual Y Axis chart with drilldown to the same type of chart.

 

Top level chart renders no problem, and the cursor changes to a hand when over a data point, but nothing happens when it's clicked.

 

I have tried removing all UpdatePanels etc.

 

If I set the link to a web address (http://blah.com) the page correctly shows when the data point is clicked. If I set the link to 'newchart-xml-blah' nothing happens.

 

What am I missing?

 

Andrew

 

Here's my html/javascript:

 

<div id="chart_div"></div>
<script type="text/javascript">
  var chart = new FusionCharts("../lib/MSCombiDY2D.swf", "chart", "800", "300", "0", "1");
  chart.setDataURL("../chart_req.aspx");
  chart.render("chart_div");
</script>

 

Here's the XML (edited for brevity):

 

<chart caption='Visits' xAxisName='Time Period' PYAxisName='Visits' SYAxisName='Duration'>
<styles>
   <definition>
     <style name='CanvasAnim' type='animation' param='_xScale' start='0' duration='1' />
   </definition>
   <application>
     <apply toObject='Canvas' styles='CanvasAnim' />
   </application>
 </styles>

 <categories>
   <category label='Jul' />
 </categories>
 <dataset seriesName='Visits' parentYAxis='P'>
   <set value='10' link='newchart-xml-daily0' />
 </dataset>
 <dataset seriesName='Duration' parentYAxis='S'>
   <set value='5' link='newchart-xml-daily0' />
 </dataset>

 <linkeddata id='daily0'>
   <chart caption='Visits' xAxisName='Time Period' PYAxisName='Visits' SYAxisName='Duration'>
     <categories>
       <category label='1-Jul' />
     </categories>
     <dataset seriesName='Visits' parentYAxis='P'>
       <set value='0' />
     </dataset>
     <dataset seriesName='Duration' parentYAxis='S'>
       <set value='0' />
     </dataset>
   </chart>
 </linkeddata>
</chart>

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

Flash Player Global Security settings needs to be enabled, if you are running the application from local file system (C:\ or D:\) and not from web server (local or live).

 

Flash Player's Global Security setting blocks invoking/calling JavaScript from SWF (Flash Movie) by default. So you need to reset your setting into Global Security Setting panel and enable it.

 

Please refer to the following page for further details on the Flash Player Global Security settings:

 

http://www.macromedi..._manager04.html

 

I hope this helps.

 

Looking forward to your feedback.

Share this post


Link to post
Share on other sites

Flash Player Global Security settings needs to be enabled, if you are running the application from local file system (C:\ or D:\) and not from web server (local or live).

 

Flash Player's Global Security setting blocks invoking/calling JavaScript from SWF (Flash Movie) by default. So you need to reset your setting into Global Security Setting panel and enable it.

 

Please refer to the following page for further details on the Flash Player Global Security settings:

 

http://www.macromedi..._manager04.html

 

 

I tried this but it didn't make any difference. I see the same behaviour on my local development machine and the webserver.

 

When a data point is clicked and I'm debugging in Visual Studio, I see a JScript script block start up:

 

try { document.getElementById("visits_duration_chart").SetReturnValue(__flash__toXML(__fusioncharts_event(({type:"drawcomplete",sender:"visits_duration_chart"}),({drawCount:1,width:799,height:300}))) ); } catch (e) { document.getElementById("visits_duration_chart").SetReturnValue("<undefined/>"); }

 

But there's no output on the web page.

 

Andrew

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your response.

 

I am afraid, we are unable to replicate the issue,as the code is working fine from our end.sad.gif

 

Please find the screenshot attached for your reference.

post-10517-0-06660100-1311576423_thumb.png

post-10517-0-68324100-1311576443_thumb.png

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