Value formatting in dash ag-grid

Hi all,
How can I do the value formatting along with converting to millions in Ag grid?
If value is 47374049
I want - $47.37M

If value is -567356608
I want - $(567.35)M

How can I achieve this?

Hello @Gangz,

Check out the d3 formatting section in the documentation. :grin:

In the documentation, they don’t mention about this division by one million, how do I achieve that?

Check out here:

It looks like you should be doing something with s

1 Like

Thanks! I achieved it using formatPrefix

1 Like