dosubot[bot] commented on issue #33882: URL: https://github.com/apache/superset/issues/33882#issuecomment-3000698122
<!-- Answer --> This issue is likely related to recent changes in the stacking and value display logic for bar charts. The "Show Value" and "Only Total" options are controlled by logic in the frontend code, specifically in the functions that determine which bar segments display values and how those values are rendered. The "Only Total" option should show the total for each bar, not just a single value for the entire cluster, and when unselected, all segment values should appear. Recent updates—especially the introduction and modification of the `onlyTotal` option—may have introduced a bug in how these values are calculated and displayed. The relevant logic lives in the `extractShowValueIndexes` and `transformSeries` functions, which determine where and how values are shown on stacked bars. Any regression here could cause the symptoms you're seeing, such as only one value per cluster or missing values entirely. You can review the technical details and recent changes in [this pull request](https://github.com/apache/superset/pull/33634) and see related discussion in [this issue](https://github.com/apache/superset/issues/32531). If you want to debug or patch this, focus on the logic in `extractShowValueIndexes` and the label formatter in `transformSeries` in the ECharts plugin code. No merged fix or workaround for this specific display bug was found as of now. <!-- 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/8a771f54-2c8f-4de6-b9c5-b2449a48c166?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/8a771f54-2c8f-4de6-b9c5-b2449a48c166?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/8a771f54-2c8f-4de6-b9c5-b2449a48c166?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/8a771f54-2c8f-4de6-b9c5-b2449a48c166?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/8a771f54-2c8f-4de6-b9c5-b2449a48c166?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/8a771f54-2c8f-4de6-b9c5-b2449a48c166?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/8a771f54-2c8f-4de6-b9c5-b2449a48c166?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [! [Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/33882) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
