dosubot[bot] commented on issue #36043: URL: https://github.com/apache/superset/issues/36043#issuecomment-3504143009
<!-- Greeting --> Hi @vince-a-m! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> The tooltip formatting for pie charts in Superset is handled by a formatter function in the ECharts pie chart plugin. This function is supposed to format the tooltip as separate values (e.g., "Direct Patient Care 1582 (47.96%)"), but if you're seeing a concatenated string, it likely means there's a bug or misconfiguration in the tooltip formatter logic or its utility functions. The relevant code is in the `transformProps` function, specifically in the `tooltip.formatter` property, which uses a `parseParams` function to extract and format the name, value, and percent, and then generates the tooltip HTML using `tooltipHtml` [see source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Pie/transformProps.ts#L59-L434). If the tooltip is not matching the label format, check for any local overrides or recent changes to this formatter logic. Ensuring that the formatter returns a string like `${name} ${formattedValue} (${formattedPercent})` should resolve the issue. If you are customizing the chart, you may want to review or adjust the tooltip formatter in your deployment. <!-- 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/de212204-829f-4c32-a7cc-bfd74e0bc3d5?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/de212204-829f-4c32-a7cc-bfd74e0bc3d5?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/de212204-829f-4c32-a7cc-bfd74e0bc3d5?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/de212204-829f-4c32-a7cc-bfd74e0bc3d5?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/de212204-829f-4c32-a7cc-bfd74e0bc3d5?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/de212204-829f-4c32-a7cc-bfd74e0bc3d5?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/de212204-829f-4c32-a7cc-bfd74e0bc3d5?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](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/issues/36043) -- 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]
