Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bubble series bounded by z=0 causes points to disappear #17280

Closed
cebamps opened this issue May 11, 2022 · 1 comment · Fixed by #18604
Closed

Bubble series bounded by z=0 causes points to disappear #17280

cebamps opened this issue May 11, 2022 · 1 comment · Fixed by #18604

Comments

@cebamps
Copy link

cebamps commented May 11, 2022

Expected behaviour

Points in bubble series with z = 0 should be handled as any other point when computing the range of z values used for rendering.

Actual behaviour

When plotting multiple bubble series, a series whose minimum z value is 0 causes the computation of the global z scale to fail. This results in points falling out of the range and not being plotted at all.

I believe the issue is in those lines: https://github.com/highcharts/highcharts/blob/v10.1.0/ts/Series/Bubble/BubbleSeries.ts#L469-L470 If the running zMin or zMax is 0, the running minimum/maximum is forgotten and replaced with the current series' minimum/maximum in the loop.

Live demo with steps to reproduce

https://jsfiddle.net/5ns2ozma/

Product version

Highcharts v10.1.0

Affected browser(s)

Firefox, Chrome

@pawellysy
Copy link
Contributor

Hello, @cebamps thanks for reporting this bug as well as a great demo and thorough debugging.
You are right, the issue is connected to the lines you pinpointed.

Workaround

Overwrite the getRadii method to use pick instead of the logical OR operator: https://jsfiddle.net/BlackLabel/7doLnme8/2/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants