microsoft / charticulator

Interactive Layout-Aware Construction of Bespoke Charts
Other
833 stars 115 forks source link

Format numbers with Billion instead of Giga #1033

Open jordanFromNYC opened 2 years ago

jordanFromNYC commented 2 years ago

Using the D3 formatting syntax (e,g, {s} ) returns G for Giga when numbers are in Billions. Since Charticulator is used a lot in a context of numbers, money, financials reports/charts, etc... It would be very useful to have the possibility to display a "B" instead of a "G"

garylzimmer commented 1 year ago

This continues to be an issue. I can't believe that no one tested any data with billions of currency. There are work arounds when the user can use javascript but since that's not possible within the tick format box, we have to resort to hacky stringified work arounds