Cortez
Posts: 85
Joined: Fri May 29, 2020 9:41 am

heatmap data grouping

Hi there all!
Please, check this example: https://jsfiddle.net/Cortez/7xL6qdwc/

As you may see, I have three data points for x:0, y:0 (with values 10, 11 and 12).
And "Monday - Alexander" intersection shows a value of 10.
But if you first hover your mouse cursor anywhere around '10' digit, you will see that the tooltip shows a value of 12.
111.png
111.png (39.12 KiB) Viewed 1152 times
So, my question is: is this an intended behavior? Does heatmap chart type expects a single value per each X and Y values? Is there any special chart options to fix this?

Many thanks!
Cortez
Posts: 85
Joined: Fri May 29, 2020 9:41 am

Re: heatmap data grouping

Hi there again!
I decided to add screen record to show better what I mean: https://nimb.ws/ikKRLp
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: heatmap data grouping

Hi,

Thanks for contacting us with your question and thanks for preparing a fiddle!

Yes, heatmap expects a single value per point. You can create your own function to split cells with a few values. Here is a similar thread:
https://stackoverflow.com/questions/570 ... javascript

Let me know if you have any further questions,
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer
Cortez
Posts: 85
Joined: Fri May 29, 2020 9:41 am

Re: heatmap data grouping

Hi there magdalena!
Thanks for your reply. I think this completely answers my question

Best regards
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: heatmap data grouping

That's great to hear!

Best regards!
Magdalena Gut
Developer and Highcharts Support Engineer

Return to “Highcharts Stock”