문제

I am new to HighCharts, javascript, and rails. I have a highchart in my rails application. I need to pass the values of the x and y to rails of the point a users clicks on the chart series. I know about the selection event handler but not how to pass data from highcharts to the rails controller. Can someone point me to an example I can look through.

Please help. Thanks

도움이 되었습니까?

해결책

Too late, probably you already have solved this. The selection event handler allows you to fire an event. You can fire an ajax request to a controller method with the values of the point which are accessed using 'this'. Many demos in highcharts show you how to access the values of points using this.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top