Anu@Com

Drill Down Fusion Chart In Flex

Recommended Posts

Hi,

 

I am trying to display fusion chart column2D chart using flex and drill down.

i refered to this post http://docs.fusioncharts.com/flex/charts/Contents/DrillDown/FlexLinks.html

In this the link is mentioned to trigger a function.

<set label='Hong Kong' value='235' link='E-my_func,Hong Kong,235'/>

This is the peice of code I used for testing this functionality, but failed to view the alert

<?xml version="1.0" encoding="utf-8"?><s:SkinnableContainer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:components="com.fusioncharts.components.*"> <fx:Script> <![CDATA[ import mx.controls.Alert; var str:String = "<chart id='cht_data1' > <set label='January' value='250' link='E-my_func,testing,1'/> </chart>" ; var test:XML = new XML(str); public function my_func(linkParam:String):void { Alert.show("hi"); } ]]> </fx:Script> <components:FusionCharts id="myChart" FCChartType="Column2D" width="500" height="300" FCDataXML="{test}"/> </s:SkinnableContainer>

Please help in using drill down feature in flex code.

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