Sign in to follow this  
Shally

How To Create Drill Down Charts In Flex

Recommended Posts

I am struggling with creating drill down charts in flex using fusion charts. I have an xml called "Data.xml" which has the following code:

 

<chart caption="Top 5 Employees for 1996" palette="2" unescapeLinks='0' animation="1" subCaption="(Click to slice out or right click to choose rotation mode)" YAxisName="Sales Achieved" showValues="0" numberPrefix="$" formatNumberScale="0" showPercentInToolTip="0" showLabels="0" showLegend="1">

<set label="Leverling" value="100524" isSliced="0" link="newchart-xmlurl-2004-quarterly"/>

<set label="Fuller" value="87790" isSliced="0"/>

<set label="Davolio" value="81898" isSliced="0"/>

<set label="Peacock" value="76438" isSliced="0"/>

<set label="King" value="57430" isSliced="0"/>

 

<linkeddata id="2004-quarterly">

<chart caption="Quarterly Sales Summary" subcaption="For the year 2004"

xAxisName="Quarter" yAxisName="Sales" >

<set label="Q1" value="11700" />

<set label="Q2" value="8600" />

<set label="Q3" value="6900" />

<set label="Q4" value="10600" />

</chart>

</linkeddata>

 

 

</chart>

 

The mxml file has the following code:

 

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="com.fusioncharts.components.*" xmlns:ns2="com.fusionwidgets.components.*">

<ns1:FusionCharts x="100" y="156"

visible="true" FCChartType="Column3D" FCDataURL="Data.xml" >

 

</ns1:FusionCharts>

</mx:Application>

 

 

This is all I am doing. If a step by step procedure to build the same could be mentioned, that would be great.

I just have kept a folder named FusionCharts with all the Chart Type swfs and the xml at the same hierarchy as is of the mxml file.

 

Any quick help would be really appreciated.

 

Regards,

Shally

Share this post


Link to post
Share on other sites

:)...Thanks Sanjukta...I had been trying hard to do that. So, I guess this can be achieved only through HTML? If yes, can you please help me with the appropriate steps in sequence?

 

Thanks again in advance.

 

Regards,

Shally

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Shally,

 

FusionCharts v3.2 introduces a new and smart drill-down feature - LinkedCharts - that allows you to create unlimited level of drill-down charts using a single data source. All the links originate from a parent chart and it's data, which comprehensively contains data or data URL for all descendant (child, grand-child) charts. Upon clicking the data plot items (columns, pie etc.) of the parent chart, users can drill-down into descendant charts. The descendant charts (or children charts) can either replace the parent chart with an option to drill-up, or can be opened in new dialogs or frames.

 

For detailed information on the same, please refer to the links mentioned below :-

 

Ref.- http://www.fusioncharts.com/docs/?FirstChart/LinkedCharts.html

http://www.fusioncharts.com/docs/?DrillDown/LinkedCharts.html

 

I hope this helps. :)

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Shally,

 

You are most welcome.

 

I hope your issue gets resolved soon.

 

Happy FusionCharting. :)

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