Sign in to follow this  
Guest Rajroop

Bar2D.swf / how can I make chart label as href link?

Recommended Posts

Hi,

I would like to make chart label as href link, when user click the label, i want it call some function. While my following code does not work:

var event1="myevent1";

var page1="mypage1";

xml="..." +

"<set label='<a href="#"onClick=""+

  "window.parent.events.fireEvent(" + event1+"," + page1+

  ")">MyLabel1</a>' labelHAlign='left' tooltext='first' value='10' color='ff0000'/>"+

   "..."

chart.setDataXML(xml);

Other parts of xml is ok, could you help me point where the problem is? Thank you.

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Welcome to FusionCharts Forum. :D

Could you please try using the "link" attribute in the <set> element to open a link page?

Ref.- http://www.fusioncharts.com/docs?/DrillDown/Simple.html

In case of calling a function, please try calling the function on the "onclick" event of 'Control' that you are using.

Hope this helps.

Wish you a very Happy New Year.

Share this post


Link to post
Share on other sites

Basundhara and Rajroop,

Thank you for the kind help. I am using the fusion charts free, will try to find other workaround.

This is really a good forum, I hope I could find here earlier. Smile.gif

Best regards.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Thanks for your appreciation. :D

I am afraid, as of now FusionCharts Free does not supports the "Styles" functionality.

Could you please try using the Trial pack of the FusionCharts(version 3.1.1) which support all the functionality with a water-mark?

Ref.- http://www.fusioncharts.com/Download.asp

Hope this helps. :)

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