deebaa

Draw a vertical line when user clicks the line chart

Recommended Posts

Hi

 

I'm using fusion charts.

 

I should draw a vertical line when i click on the chart.

 

I have seen the funtions for legendClicked, markerClicked etc..

 

But is there any funciton to respond when the user click on the chart?

 

Thanks

Deeba

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi Deeba,

 

Welcome to FusionCharts Forum.

 

As per your requirement, you may call a custom JavaScript function on click of the chart and in that function, update the entire chart XML/JSON data with a vertical line.

 

To call the JavaScript function on click of chart, you would need to provide the link in the "clickURL" attribute.

 

For more information on "Using JavaScript Fusions as links", please follow the link below:

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

 

Also, for more information on "Providing and updating chart data", please visit the link: http://docs.fusioncharts.com/charts/contents/?JavaScript/JS_ChangeData.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