Sign in to follow this  
Ankur Gupta

Customized Event Handling

Recommended Posts

Guest Sumedh

Hi,

 

Is it possible to to implement event handling in fusion chart ex: mouse click .

 

Thanks,

 

Ankur Gupta

 

 

 

Hi,

 

FusionCharts JavaScript Class API provides a number of events.

 

Events are categorized into two broad groups - Simple Events and Advanced events. Each event provides arguments to the event-listeners.

 

For more information, refer this : http://docs.fusioncharts.com/charts/contents/?JavaScript/API/Events.html

 

You can refer this post also: http://forum.fusioncharts.com/topic/11600-linked-charts/page__p__45466__hl__event__fromsearch__1#entry45466

 

Also, find attached illustration for your reference.

JLink.zip

Share this post


Link to post
Share on other sites

Hi,

 

FusionCharts JavaScript Class API provides a number of events.

 

Events are categorized into two broad groups - Simple Events and Advanced events. Each event provides arguments to the event-listeners.

 

For more information, refer this : http://docs.fusionch...API/Events.html

 

You can refer this post also: http://forum.fusionc...h__1#entry45466

 

Also, find attached illustration for your reference.

 

Hi,

 

As per the suggestion I have gone through with the above given url but didn't find any suitable solution for my problem. Provided events doesn't contain click event functinality, Though to handle this we can go for XML link attribute but my problem is I am using JSON with sencha touch 2.0 where I require to handle click event on the Data plots to redirect to any webpage.

 

Please suggest.

 

Thanks,

 

Ankur Gupta

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

As per the suggestion I have gone through with the above given url but didn't find any suitable solution for my problem. Provided events doesn't contain click event functinality, Though to handle this we can go for XML link attribute but my problem is I am using JSON with sencha touch 2.0 where I require to handle click event on the Data plots to redirect to any webpage.

 

Please suggest.

 

Thanks,

 

Ankur Gupta

 

 

Hi,

 

FusionCharts support both data formats XML and JSON.

 

Find attached illustration which is reading data from a JSON file.

 

JLink.zip

Share this post


Link to post
Share on other sites

Hi,

 

FusionCharts support both data formats XML and JSON.

 

Find attached illustration which is reading data from a JSON file.

 

 

 

 

Hi Sumedha,

 

Thanks for the update but as I said above to implement click event functionality we will be requiring 'LINK' attribute in XML tag but if we are dealing with 'JSON' in that case how we will be able to achieve that.

 

As I found one example in fusion chart forum it has 'LINK' attribute with XML for click event handling but has nothing for JSON.

 

Please suggest.

 

Ankur Gupta

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi Ankur,

 

Thank you for the post.

 

you can provide the same "link" attribute to the JSON data without having any issues.

 

Ref. Code:

{
 "chart":{
"caption":"Yearly Sales", "xaxisname":"Year", "yaxisname":"Sales" },
 "data":[
{ "label":"2004", "value":"37800", "link":"newchart-jsonurl-Data2004.json"  },
{ "label":"2005", "value":"21900", "link":"newchart-jsonurl-Data2005.json"  },
{ "label":"2006", "value":"32900", "link":"newchart-jsonurl-Data2006.json"  },
{ "label":"2007", "value":"39800", "link":"newchart-jsonurl-Data2007.json"  }
 ]
}

 

For more information on "Creating Linked Charts", please follow the link below:

http://docs.fusioncharts.com/charts/contents/?DrillDown/LinkedCharts.html

 

For more information on "FusionCharts Link format", please follow the link below:

http://docs.fusioncharts.com/charts/contents/?DrillDown/LinkFormat.html

 

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