GitHub user andreeairimia-ops created a discussion: Bubble chart expands y axis to negative values when all data points have y = 0
I have a bubble chart whose y axis gets rendered with negative values when all data points are 0 because, in my understanding, superset finds that min = max = 0 and adds padding (-1, 1) so that the chart is rendered nicely within an interval. <img width="586" height="121" alt="Screenshot 2025-09-05 at 14 09 37" src="https://github.com/user-attachments/assets/1ffffb94-7368-49d8-aeae-30a87193629a" /> However, the nature of my data doesn't allow for negative values and the chart becomes incorrect. So far, none of the solutions I found work for my use case: 1. add static hard-coded min and max bounds of (0, 1) to the y axis in my superset instance where all data points are 0, however I cannot hard-code the max bound to 1 everywhere as the values may differ and also change over time. If I leave only the min bound of 0, superset still finds min = max = 0 and renders negative values on the axis. 2. add a dummy data point that would ensure there's always a max > 0 but I can't figure out how to make it fully invisible in the chart, if I filter it out, of course the interval falls back to (-1, 1) and if it's not filtered out, I have to resort to some css hacks to make it invisible which is not ideal. 3. I'm using superset version 3 and I don't have the option to "truncate y axis" but that wouldn't help either as the axis would collapse to a line at 0, no negative min bound, but also no chart height so it seems there's no way I can have custom bounds only when all my data points are 0. So my question is, is there a way to dynamically infer the max bound from the dataset but when all data points are 0, min = max = 0, then use max bound of 1, for example? GitHub link: https://github.com/apache/superset/discussions/35054 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
