GitHub user dosubot[bot] added a comment to the discussion: Bubble chart expands y axis to negative values when all data points have y = 0
<!-- Answer --> You're correct—this dynamic y-axis max feature doesn't exist in any Superset version, including the latest. The only way to get this behavior is to update the source code, specifically by adding logic to the bubble chart plugin's `transformProps` function to set `yAxis.max = 1` when all y values are zero and no manual bounds are set. If you want, I can outline exactly where and how to add this logic in the codebase. Reference: [transformProps.ts implementation](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Bubble/transformProps.ts) <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/7714521b-6416-4a14-92eb-e3cbdf41dc81?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/7714521b-6416-4a14-92eb-e3cbdf41dc81?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/7714521b-6416-4a14-92eb-e3cbdf41dc81?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/7714521b-6416-4a14-92eb-e3cbdf41dc81?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/7714521b-6416-4a14-92eb-e3cbdf41dc81?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/7714521b-6416-4a14-92eb-e3cbdf41dc81?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/7714521b-6416-4a14-92eb-e3cbdf41dc81?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)& nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/35054) GitHub link: https://github.com/apache/superset/discussions/35054#discussioncomment-14341593 ---- 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]
