How do I know which series I am selecting in a radial bar chart? #2585
Unanswered
lucasrdrgs
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Say I have a radial bar chart and I need to show the percentage of conclusion of a project by teams A, B and C. I'd have three concentric circles, each with a value from 0 to 100 like specified by the documentation. However, when I hover my mouse on those series, I don't want to display the %, I want to display a deadline that comes from this array, where index 0 is team A, 1 is team B and 2 is team C:
deadlines = ['2021/09/10', '2021/11/03', '2022/03/04'];
I want to use a formatter function that will give me the deadline of the current selected series (that is, the series my mouse is hovering), but for that I'd need to have the index of the current series. Is that possible? I know it is for dataLabels, but I'm not sure about
plotOptions.radialBar.dataLabels
. Ideally, I'd want something like this:where value is the value of the selected series, w is the object that has
globals
andoptions
property and seriesIndex is the index itself.Any help is appreciated!
Beta Was this translation helpful? Give feedback.
All reactions