dosubot[bot] commented on issue #35120:
URL: https://github.com/apache/superset/issues/35120#issuecomment-3285819243

   <!-- Greeting -->
   Hi @steele-boolkin-naked! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m 
helping the superset team.
   
   <!-- Answer -->
   This is a known issue: Superset's pie chart labels and tooltips can format 
count metrics as percentages, resulting in values like "2496.00%" when the 
metric is a raw count. The label formatting logic in the codebase does not 
distinguish between count and percentage metrics—if you select a label type 
that includes percent, it will always show a percentage, even for counts. There 
isn't a built-in way to suppress this behavior for count metrics, and recent 
updates haven't addressed this bug yet 
[[source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Pie/transformProps.ts)].
   
   You can partially work around this by customizing the label type in the 
chart control panel (e.g., choose "Value" or "Category and Value" instead of 
any option that includes "Percent"), or by using the "Template" option to 
format labels with only the variables you want. For tooltips, you can also 
modify the formatter function in `transformProps.ts` to control what is 
displayed [[source](https://github.com/apache/superset/issues/33913)]. However, 
these workarounds do not fully prevent percentage formatting for count metrics.
   
   If you need to avoid percentage formatting entirely for count metrics, you 
may need to adjust the chart configuration or customize the frontend code. 
There is no official fix or configuration option for this yet.
   
   
   <!-- 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/8d88f337-8e68-4023-9c35-f164cbf20c5d?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/8d88f337-8e68-4023-9c35-f164cbf20c5d?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/8d88f337-8e68-4023-9c35-f164cbf20c5d?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/8d88f337-8e68-4023-9c35-f164cbf20c5d?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/8d88f337-8e68-4023-9c35-f164cbf20c5d?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/8d88f337-8e68-4023-9c35-f164cbf20c5d?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/8d88f337-8e68-4023-9c35-f164cbf20c5d?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
 b)&nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![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/35120)


-- 
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]

Reply via email to