Skip to content
Discussion options

You must be logged in to vote

Setting DEFAULT_LOCALE = "it" in superset_config.py does not affect how numbers are displayed in the Superset UI. To use Italian-style number formatting (periods for thousands, commas for decimals), you need to set the D3_FORMAT dictionary in your superset_config.py like this:

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

After saving the file, restart all Superset services and clear your browser cache. This will update number formatting in charts and tables to Italian notation (e.g., 3.647,50€) reference.

To verify the change, open your browser dev tools and check that window.bootstrap_data.common.d3_format matches your settings…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Cristian-wp
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant