Good afternoon,
I’m using highcharts for a project and was wondering if anyone could help with a few small queries.
I have this example chart here: https://codepen.io/GeorgeBT/pen/pQYXyw?editors=1111 to illustrate what I would like.
I want to add a few bits of information to the tooltip on my chart.
Firstly, I would like to get the total number of chunks in the stacked bar. So in my example there’s 3 different chunks, so I would like the tooltip to say total chunks: 3
Secondly, I would like to get the chunks position in the stack. So, if the user hovers over the first chunk it will be position 1.
Thirdly, I would like to be able to get the average of the data in the tooltip - I suppose this would just be dividing the total (Which I have) by the number of chunks in the stack.
If anybody could help on these queries I would be greatly appreciated!
Many thanks,
George