Sign in to follow this  
ShravanKrishna

X Axis Label Link

Recommended Posts

Hi,

 

I work in flex 4.5, we are trying to use flex fusion charts and i am new to the Fusion charts, I am stuck up with one sort of implementation,

 

I am able to display a 2D Stacked Column chart. On displaying the charts i need a certain feature

i.e on click of the lables displayed over the x-axis we should call a handler method, where in i need to put in some business and based on that i have to open a popup.

 

 

Could anyone help us to over come this implemenation, it would be very helpful.

Edited by ShravanKrishna

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Welcome to FusionCharts Forum! smile.gif

 

Please find the sample XML code attached for your reference.

 

Here, we have used x axis label as a link i.e on clicking the label "Jan", you would be able to open a new page.

 

Hope this helps.

CategoryLink.xml

Share this post


Link to post
Share on other sites

Thanks for you help.

 

Actually its worked using that xml.

 

[Bindable]

private var chartData:ArrayCollection = new ArrayCollection([{label: "<a href='

http://www.fusioncharts.com'> Jan </a>"},

{label: 'Feb'}, {label: 'Mar'}, {label: 'Apr'}, {label: 'May'}, {label: 'Jun'}, {seriesName: 'Product A'},

{value: '27400'}, {value: '29800'}, {value: '25800'}, {value: '26800'}, {value: '29600'},

{value: '23600'}, {seriesName: 'Product B'}, {value: '10000'}, {value: '11500'}, {value: '12500'},

{value: '15000'}, {value: '11000'}, {value: '9800'}]);

 

I am tring to use that as array collection as i did in the above code.

 

But it stating as XML invalid data.

 

Can you please help me on how to use this in array collection and how to call a flex method on click of that data label link.

 

Regards,

Sharavan

 

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your response.

 

Could you please confirm whether you are using FusionCharts v3 or FusionCharts for flex?

 

Awaiting for your response.

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your response.

 

FusionCharts for Flex uses an interface to convert Flex data sources into FusionCharts XML.

 

For more details, please visit the links below:

 

http://docs.fusioncharts.com/flex/charts/Contents/xml_mapping_multiSeries.html#ArrayCollection

 

http://docs.fusioncharts.com/flex/charts/Contents/xml_mapping_singleSeries.html#ArrayCollection

 

Hope this helps.

Share this post


Link to post
Share on other sites

Hi,

 

I ordered for Fusion chart 3.2 license. I want to know does it have following features when i use it with Flex:

1) Flec click event on click of legend

2)Flex click event on click of data label

 

Regards,

Hari Bond

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