If you can edit the code for your Superset instance/deployment, there is a way to accomplish this. This assumes you've pulled your code from GitHub, and thus have a superset-frontend
folder. If so, then open superset-frontend/src/setup/setupFormatters.js
and do the following:
At the top, alongside createDurationFormatter
make sure to import createD3NumberFormatter
from @superset-ui/number-format
Alongside all the registerValue
entries following getNumberFormatterRegistry()
, add one more that looks like so:
.registerValue(
'CURRENCY_INDIA',
createD3NumberFormatter({
locale: {
decimal: '.',
thousands: ',',
grouping: [3, 2, 2, 2, 2, 2, 2, 2, 2, 2],
currency: ['₹', ''],
},
formatString: '$,.2f',
}),
)
Then, when you're editing a chart in the Explore view, you can type CURRENCY_INDIA
as your formatter, and it should work!

Optionally, if you're maintaining a fork of superset-ui
you can add this as an option included in the Explore viz controls. To do that, you would add it in superset-ui_preset/packages/superset-ui-chart-controls/src/shared-controls/index.tsx
as one of the exported D3_FORMAT_OPTIONS
.