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

In Bubble chart with multi series, data point with z value as 0 is not plotting correctly on the chart #17555

Closed
gs-hbaba opened this issue Aug 3, 2022 · 3 comments

Comments

@gs-hbaba
Copy link

gs-hbaba commented Aug 3, 2022

Expected behaviour

In Bubble chart data points should be plotted correctly with multi series data,

Actual behaviour

In Bubble chart data points with z value as 0 is not plotted correctly.
One of the series has a data point with z value as 0, this is point is being plotted wrongly

Live demo with steps to reproduce

http://jsfiddle.net/9dygmeo6/5/

the data point [1, 1, 0] in size by area series is plotted wrongly in chart.

Product version

Highcharts - 9.3.3

Affected browser(s)

chrome, firefox

Screenshot 2022-08-03 at 11 56 44 AM

@pawellysy
Copy link
Member

Hi @gs-hbaba, thanks for reporting this issue!
You are defining the marker size in the plotOptions. If you don't do it, the bubble, with size 0 won't be displayed: http://jsfiddle.net/BlackLabel/pLom3bjs/

What is your view, on how this should work? Maybe the marker size should not be taken into consideration if the z-value is defined for the bubble chart?

@gs-hbaba
Copy link
Author

gs-hbaba commented Aug 3, 2022

Hi @pawellysy,
There is one more use case i forgot to mention.
if there is only one series it works as expected,
this issue comes only when there is multi series.

However below are the use cases i have:

  1. only one series with z value 0. - works as expected.
  2. multi series :
  • first series has a z value 0 - there is issue with plotting.
  • first series has non zero z values, other series has z value 0 - plotting is fine - no issue
  • all series has z value 0 - plotting is fine - no issue

In all above cases only with multi series , first series having z value 0 case behaviour is different.

for your question : "What is your view, on how this should work? Maybe the marker size should not be taken into consideration if the z-value is defined for the bubble chart?"
answer: the marker size should be considered if the z value is less than or equals to 0 or there is no z value.

@raf18seb
Copy link
Contributor

raf18seb commented Aug 4, 2022

Hi @gs-hbaba!

The bubble.marker.radius property is not documented thus not supported and you should never use it because it may lead to unexpected behaviors (like e.g. the one described above).
https://api.highcharts.com/highcharts/series.bubble.marker

If you'd like to set marker.radius option in plotOptions.series for all series types, you should disable it for bubble series like this:

plotOptions: {
    series: {
        marker: {
            enabled: true,
            radius: 4
        }
    },
    bubble: {
        marker: {
            radius: null
        }
    }
},

Working demo: https://jsfiddle.net/BlackLabel/Loxyw8cv/

Closing as not a bug.

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

No branches or pull requests

3 participants