kgabryje opened a new pull request, #24517:
URL: https://github.com/apache/superset/pull/24517

   
   ### SUMMARY
   Enables users to set a currency formatter for saved metrics in Datasource 
edit modal.
   
   Currently supported currencies are: `"USD", "EUR", "GBP", "INR", "MXN", 
"JPY", "CNY"` (+ user can manually type other currency codes in the currency 
picker)
   
   Currently supported charts are: Table, Pivot Table, Big Number (+ with 
trendline), (Time)Series Echarts, Pie, Gauge, Funnel, Treemap.
   
   The number is formatted using the d3 format specified either for saved 
metric in datasource editor (takes priority) or in control panel. If user picks 
a d3 formatter that adds `%` or currency signs, the special signs are ignored.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   <!--- Skip this if not applicable -->
   
   
https://github.com/apache/superset/assets/15073128/281ec0b5-3506-4dbb-a709-50080fa9906b
   
   
   ### TESTING INSTRUCTIONS
   <!--- Required! What steps can be taken to manually verify the changes? -->
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


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