dosubot[bot] commented on issue #34030: URL: https://github.com/apache/superset/issues/34030#issuecomment-3029899464
<!-- Answer --> This looks like a real bug in the tooltip formatting logic for mixed charts. There aren’t any existing issues or PRs that directly address this problem. The root cause is likely in how Superset matches each series to its axis: the tooltip formatter relies on the series key (name/id) matching exactly between the set membership logic and the tooltip rendering logic. If there’s any mismatch in naming conventions or key construction, the wrong formatter can be applied, so a number might be formatted as a percent (or vice versa) in the tooltip. You can see this logic in the `transformProps` function for mixed charts, where the formatter is chosen based on whether the series is in the `primarySeries` or `secondarySeries` set, but this mapping is fragile and can break if the keys don’t match up as expected ([source](https://github.com/apache/superset/blob/2734688f4fe45c2704c975603e7ee731b01895bd/superset-frontend/plugins/plugin-chart-echarts/src/MixedTimeseries/transformProps.ts)). If you want to dig deeper or try a fix, focus on how series keys are constructed and matched in both the series initialization and tooltip formatting logic. Making this mapping more robust should resolve the formatting mismatch. <!-- 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/6bbbfac1-6a23-4350-8ebc-a496b1973890?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/6bbbfac1-6a23-4350-8ebc-a496b1973890?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/6bbbfac1-6a23-4350-8ebc-a496b1973890?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/6bbbfac1-6a23-4350-8ebc-a496b1973890?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/6bbbfac1-6a23-4350-8ebc-a496b1973890?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/6bbbfac1-6a23-4350-8ebc-a496b1973890?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/6bbbfac1-6a23-4350-8ebc-a496b1973890?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/34030) -- 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]
