Ankur Gupta Report post Posted April 25, 2012 Hi, Is it possible to to implement event handling in fusion chart ex: mouse click . Thanks, Ankur Gupta Share this post Link to post Share on other sites
Guest Sumedh Report post Posted April 26, 2012 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
Ankur Gupta Report post Posted April 26, 2012 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 Report post Posted April 26, 2012 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
Ankur Gupta Report post Posted April 27, 2012 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 Report post Posted April 27, 2012 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