plotly / dash-table

OBSOLETE: now part of https://github.com/plotly/dash
https://dash.plotly.com
MIT License
419 stars 74 forks source link

Space as thousand separator for non English country #832

Closed pauostr closed 3 years ago

pauostr commented 3 years ago

Hi there,

Is it possible to add the possibility to use a space for thousand separator instead of a coma? Many country use space as radix characters ... I saw that in the Format class there is no option other than '' or ',' for it, could you add the possibility to choose between ',' and ' ' ?

Thx

Batalex commented 3 years ago

Hi, you can use the Format class

from dash_table.Format import Format, Group

fmt = Format(
    group=Group.yes,
    groups=3,
    group_delimiter=" ",
    decimal_delimiter=",",
)

and then apply this fmt to each column.

Good luck!

pauostr commented 3 years ago

Thx it works!