How can I have thousand’s comma separator in DataTable? Usually, I’d go with plotly layout, but as far as I can see I cannot embed this into a figure as data.
Also some custom data formatting for rows (For example using python’s format f"{x:,.3f}$" for example or something like that
@nmiculinic - For now, you’ll need to convert your data to strings (in whatever format you want) and supply that formatted data as the rows property. There aren’t any built-in formatters in the dash DataTable to do this for you.
I see. The thing is, numbers are ordable (>, <, …) operators work as expected for filtering, but for strings they’re not working. Thus I’d be more than happy to have only thousand’s separator for number without custom formating for now.
Hi, I have a similar usecase to have a thousands comma separator in the Datatable. Has there been any update on this, or is t still the old way to convert everything to string?
Sweet this is a monumental improvement.
Is it possible to specify a python f-style formatting string for the ‘format’ argument? rather than use the Format() object?
It’s not, as we’re actually doing the formatting in the front end (in JavaScript) rather than in Python. However, we designed the Format object to be similar to the Python format string syntax.