Sign in to follow this  
Jasur

Mouseevents In Fusioncharts

Recommended Posts

Hello FusionChart team. I have situation where I need to listen mouse events from data items on the chart (e.i bar, column) without passing javascript code as string to link attributes of xml data. Is there option which allow me to pass callback reference to events. To make it more clear I am giving u example : myChart.addEventListener('mouseclick', callbackFn); callbackFn(){alert("dataItem clicked");}; Thanks

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

A warm welcome to the FusionCharts Forum :)

 

Such events are not supported by data plots as of now.

 

However it is supported by legends in multiseries charts.

 

To track the legend click event, FusionCharts XT Service Release 4 has introduced advanced event known as "LegendItemClicked".

 

Note: This is currently not documented but would work for both Flash and JavaScript.

 

Ref. Code:

function myChartListener(eventObject, argumentsObject)

{

alert( "Legend clicked" );

}

FusionCharts("ChartId").addEventListener ("LegendItemClicked" , myChartListener );

 

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