Reputation: 25
I am trying to implement drag and drop functionality in highcharts. But I am facing 2 problems:
Secondary Y-Axis is not seems to be working, any reason why the line of for Phasing series is showing like this?
How can I show the sum of Phasing series in tooltip while user is dragging, how can I do it in drag event?
Basically only the uplift series is draggable and the sum of all points in that series should be exactly 100.
Upvotes: 0
Views: 936
Reputation: 45079
Since all points have the same calue, Highcharts can't calculate yAxis - set min or max for second yAxis, to give some more information for calculations: http://jsfiddle.net/ZQQpS/9/
Why you want to do it in drag event? Use tooltip.formatter
- there loop through all points using this.point.series.data
and sum values to display in a tooltip.
Upvotes: 1