fabgat commented on issue #29251:
URL: https://github.com/apache/superset/issues/29251#issuecomment-2225543713

   At the end, I've D3-format working.
   To whom it may concern, here follows the two steps needed:
   1) update the file: superset-frontend/src/setup/setupFormatters.ts
   into that file, I've added the needed configuration:
   
       .registerValue('CURRENCY_ITALY', createD3NumberFormatter({
         locale: {
           decimal: ',',
           thousands: '.',
           grouping: [3],
           currency: ['€', ''],
         },
         formatString: '€.,2f',
       }))
   
   after changing it, I proceed to build the frontend:
   npm run build
   
   D3_FORMAT = {
       "decimal": ",",
       "thousands": ".",
       "currency": ["€", ""],
       "grouping": [3],
   }
   
   After this I've build the new docker image as follow:
   
   sudo docker build -t my-custom-superset-image .    <--- pay attention to not 
forget the "." at the end.
   
   Now I got the choice into the dropdown menu into charts.
   That's all.
   
   Hope it helps.


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