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

   <!-- Answer -->
   The truncation of the "M" in "11.8M" is caused by how the BigNumber chart 
calculates and applies font size and container width. The component uses 
dynamic sizing to fit the number, but the CSS for the metric value 
(`.header-line`) uses `white-space: nowrap` and doesn't handle horizontal 
overflow, so if the font size is just a bit too large, the last character can 
get clipped. This is a known limitation of the current rendering logic and not 
an issue with the number formatting itself. 
   
   You can sometimes work around this by making the chart/card slightly wider 
or taller in your dashboard layout, which gives the text more room to fit. If 
your environment allows custom CSS overrides, adding `overflow-x: hidden; 
text-overflow: ellipsis;` to the `.header-line` class may help prevent 
clipping. 
   
   This is a UI rendering quirk in the BigNumber chart and not a configuration 
issue with adaptive formatting or units.  
   
[Reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx)
   
   
   <!-- 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/3d8df8a8-a579-4263-bff0-6729422fb37f?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/3d8df8a8-a579-4263-bff0-6729422fb37f?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/3d8df8a8-a579-4263-bff0-6729422fb37f?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/3d8df8a8-a579-4263-bff0-6729422fb37f?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/3d8df8a8-a579-4263-bff0-6729422fb37f?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/3d8df8a8-a579-4263-bff0-6729422fb37f?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/3d8df8a8-a579-4263-bff0-6729422fb37f?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/35079)


-- 
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: notifications-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to