dosubot[bot] commented on issue #36115: URL: https://github.com/apache/superset/issues/36115#issuecomment-3532546042
<!-- Answer --> You're right—the label template setting only affects the main chart labels, not the tooltip. Tooltip formatting for pie/donut charts in Superset is not currently user-configurable in the UI. The tooltip content is generated in the code (specifically in the ECharts pie chart plugin's transformProps.ts file) using a formatter function and a helper that builds an HTML table with the metric, value, and percent in separate cells. To change the separator, spacing, or layout in the tooltip, you'd need to modify the formatter or the tooltipHtml utility in the codebase. There isn't a built-in way to customize this via chart settings right now. You can see the relevant implementation and how the tooltip is constructed [here](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Pie/transformProps.ts#L59-L435). <!-- 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/2fcfdba2-97d6-4912-b29d-158a1c9c11da?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/2fcfdba2-97d6-4912-b29d-158a1c9c11da?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/2fcfdba2-97d6-4912-b29d-158a1c9c11da?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/2fcfdba2-97d6-4912-b29d-158a1c9c11da?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/2fcfdba2-97d6-4912-b29d-158a1c9c11da?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/2fcfdba2-97d6-4912-b29d-158a1c9c11da?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/2fcfdba2-97d6-4912-b29d-158a1c9c11da?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/36115) -- 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]
