highcharts / highcharts

Highcharts JS, the JavaScript charting framework
https://www.highcharts.com
Other
12.01k stars 3.62k forks source link

[Bug][Column chart] Tooltip is displayed for null value, yet the content is for the data points next to the null one #7720

Open DongShi opened 6 years ago

DongShi commented 6 years ago

Expected behaviour

For the null value case, tooltip should be hidden or if really needed to be shown, it should display the right category/data information

Actual behaviour

see here: http://jsfiddle.net/z6a43jrk/ when you hover on the 'Jan' column (which is null data), you see a tooltip for Feb.

Live demo with steps to reproduce

http://jsfiddle.net/z6a43jrk/

Product version

Latest.

Affected browser(s)

All.

KacperMadej commented 6 years ago

Hi @DongShi

Thank you for reporting. This is how shared tooltip is working - closest point is displayed. It's more visible with bigger gaps in data: http://jsfiddle.net/BlackLabel/z6a43jrk/1/ (try hovering between Dec category and the last column)

With not shared tooltip nothing is displayed for column until a column is hovered: http://jsfiddle.net/BlackLabel/z6a43jrk/2/

DongShi commented 6 years ago

Get the point, @KacperMadej Yet IMMO this behavior ('shared' tooltip) can still gets improved. Probably the 'closest point' rule should only applies to non-null sections?

Current behavior may cause some confusion: In your 'big gap' example, users may want to check if those gaps are there due to null or zero value. Tooltip should be helpful, but now, each time they hover on the gaps, they see data of either Dec or 20.

Just my two cents. Thanks.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

DongShi commented 5 years ago

So is Highcharts team going to fix and just mark this stale and let it go?

KacperMadej commented 5 years ago

The stale bot is "staling" old issues that are no longer tracked by anyone and posts information about staling to confirm if the issue should remain open. This issue will remain open, but it is labeled as undecided, so it is not known if there will be a fix (because it is not known if the issue is a bug).

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!