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

   <!-- Answer -->
   To change the number format to European in Apache Superset, modifying the 
`superset_config.py` file alone might not be sufficient. Instead, you should 
update the `D3FormatConfig.ts` file in the frontend code. Here’s how you can do 
it:
   
   1. Locate the `D3FormatConfig.ts` file in the frontend codebase:
      ```
      
superset-frontend/packages/superset-ui-core/src/number-format/D3FormatConfig.ts
      ```
   
   2. Update the `DEFAULT_D3_FORMAT` parameter to use a European format locale 
definition. Here’s an example:
   
      ```ts
      import { FormatLocaleDefinition } from 'd3-format';
   
      export const DEFAULT_D3_FORMAT: FormatLocaleDefinition = {
        decimal: ',',
        thousands: '.',
        grouping: [3],
        currency: ['€', ''],
      };
      ```
   
   This change will ensure that the number format is applied globally across 
your Superset instance 
<sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/packages/superset-ui-core/src/number-format/D3FormatConfig.ts)</sup>.
   
   Additionally, ensure that there are no overriding configurations in other 
files such as `superset_config_docker.py` or any other local configuration 
files that might affect the `D3_FORMATS` settings 
<sup>[[2]](https://github.com/apache/superset/blob/master/superset/config.py)</sup><sup>[[3]](https://github.com/apache/superset/blob/master/docker/pythonpath_dev/superset_config_local.example)</sup><sup>[[4]](https://github.com/apache/superset/blob/master/docker/pythonpath_dev/superset_config.py)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


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