GitHub user dosubot[bot] added a comment to the discussion: Is there a 
configuration or code change in Superset 5 to enforce European-style numeric 
formatting (decimal comma, thousand dot)?

<!-- Greeting -->
Hi @agrillea1234! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
superset team.

<!-- Answer -->
Yes, Superset 5 lets you enforce European-style numeric formatting (decimal 
comma, thousand dot) globally via configuration—no code changes or 
recompilation needed. Just add the following to your superset_config.py:

```python
D3_FORMAT = {
    "decimal": ",",
    "thousands": ".",
    "grouping": [3],
    "currency": ["", ""]
}
```

This will apply formats like 1.234,56 across charts and tables that use the 
standard D3-based formatting system 
([reference](https://github.com/apache/superset/issues/32698), [config 
example](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/config.py)).
 If you don’t see the change, check that superset_config.py is loading (inspect 
`window.bootstrap_data.common.d3_format` in your browser devtools or run 
`superset shell` and print the config), clear your browser cache, and restart 
Superset services if needed 
([troubleshooting](https://github.com/apache/superset/issues/34295)).

Note: Some exports (like CSV) and custom/legacy plugins may not respect this 
setting and could require code changes, but for standard frontend display, this 
config is all you need.


<!-- 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/0c660083-8dfe-44f8-af6f-7c39639119b4?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/0c660083-8dfe-44f8-af6f-7c39639119b4?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/0c660083-8dfe-44f8-af6f-7c39639119b4?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/0c660083-8dfe-44f8-af6f-7c39639119b4?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/0c660083-8dfe-44f8-af6f-7c39639119b4?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/0c660083-8dfe-44f8-af6f-7c39639119b4?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/0c660083-8dfe-44f8-af6f-7c39639119b4?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=github)&
 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/discussions/34553)

GitHub link: 
https://github.com/apache/superset/discussions/34553#discussioncomment-14005699

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@superset.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