FusionCharts Forum: Mouse OnClick event handler - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Mouse OnClick event handler

#1 User is offline   gombbin 

  • Forum Newbie
  • Group: Members
  • Posts: 1
  • Joined: 02-December 09

Posted 02 December 2009 - 11:53 PM

Hi guys,



I am just starting to use fusion chart, and would like to ask some questions about mouse event handling.



Here's what I am trying to do.



So, I have a table and a FusionChart graph.



I would like to update the chart when I click on a data point on FusionChart.



In other words, I would like to invoke javascript when a mouse-click even happens to call AJAX to update the table.



But it seems like the out-of-box FusionChart does not handle mouse-click event. Am I correct?





So I guess I need to drill down to the source code and make a change.



Do you have any suggestion or documentation on this matter?



Any help would be appreciated.



Thank you





Stephen
0

Other Replies To This Topic

#2 User is offline   Rajroop 

  • FusionCharts Team
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1803
  • Joined: 19-May 09

Posted 05 December 2009 - 12:43 AM

Hey Stephen,



Welcome to the FusionCharts Forum. :hehe:



Quote

"...out-of-box FusionChart does not handle mouse-click event..."




I would like to humbly refute you on this point. :P



FusionCharts v3 offers tremendous integration capabilities with JavaScript. It seamlessly binds with JavaScript/AJAX to let you update charts on the client side, without invoking any page refreshes. All the charts in FusionCharts v3 suite support this functionality.

See: http://www.fusioncha...emos/Blueprint/

http://www.fusioncha...e.asp?bypass#BP



Also, please check our our online documentation for this?

Ref.- http://www.fusioncharts.com/docs/ > FusionCharts and JavaScript



I hope these change your viewpoint about FusionCharts. :D We would love it if you'd shared your feedback with us on this.
Regards,

Rajroop Bhaduri

FusionCharts Team

Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Follow us @Twitter
0

Other Replies To This Topic

#3 User is offline   krystiann 

  • Forum Newbie
  • Group: Members
  • Posts: 2
  • Joined: 19-August 10

Posted 23 August 2010 - 03:05 AM

Hello,



I am considering purchasing FCharts however i'm in the need of the same aforementioned feature - an onclick handler exposed on the api (similiar to the one in Open Flash Charts -> ofc_onclick). I need this feature to update other elements of the webpage according to the clicks users execute on the chart ( for example to highlight a row on a grid representing the value on the chart). Is such a feature planned?
0

Other Replies To This Topic

#4 User is offline   Basundhara Ghosal 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2459
  • Joined: 15-September 09

Posted 24 August 2010 - 12:41 AM

Hi,

Please note, instead of using simple links, you can also set JavaScript links using FusionCharts. That is, you can invoke a JavaScript function present in the same page (in which the chart is present) when the end viewer clicks a data element on the chart. Just place the function name the j- notation. The function will be evaluated as a standard JavaScript function and anything placed after the function name separated by a - (dash) will be passed as a single String parameter to the function.

Ref.- <set label='USA' value='235' link="j-myJS-USA,235"/>

For further details please refer to the link mentioned below :-

Ref.- http://www.fusioncharts.com/docs/Contents/DrillDown/JavaScript.html

In case you wish to apply link to the whole chart instead of a single dataplot(s), please try using the attribute "clickURL" in the <chart> element.

Ref.- <chart...clickURL=your JS function or the link that you wish to provide>

Hope this helps. :P

Regards,

Basundhara Ghosal

Follow us on Twitter :D
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic