lazy_high_charts icon indicating copy to clipboard operation
lazy_high_charts copied to clipboard

How to call a controller method when a bar is clicked on a chart?

Open antripat opened this issue 8 years ago • 1 comments
trafficstars

Hi. I referred to your clickable bar chart wiki. The explanation does not suffice my requirement and I would need further help. My desired output Bar chart renders on the browser. User clicks a particular bar which calls a function in the controller and takes an action. I want to know how to link the controller method with the onclick event of the bar chart.

Thanks, Anant

antripat avatar Sep 23 '17 10:09 antripat

Check the highcharts documentation , you have to implement a click handler which make an Ajax request that hits the endpoint of your action controller

Best!

El 23 sep. 2017 7:29 a. m., "antripat" [email protected] escribió:

Hi. I referred to your clickable bar chart wiki. The explanation does not suffice my requirement and I would need further help. My desired output Bar chart renders on the browser. User clicks a particular bar which calls a function in the controller and takes an action. I want to know how to link the controller method with the onclick event of the bar chart.

Thanks, Anant

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/michelson/lazy_high_charts/issues/243, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAuyM0ZaOiM5JuNKGfxBDUUagAuWmgQks5slN2KgaJpZM4Phgzu .

michelson avatar Sep 24 '17 02:09 michelson