eurostat-map icon indicating copy to clipboard operation
eurostat-map copied to clipboard

Implement space as default thousands separator

Open joewdavies opened this issue 5 years ago • 1 comments

The publications team for the DRYB used a space as a thousands separator. maybe we should implement this as the default?

joewdavies avatar Feb 01 '21 10:02 joewdavies

could be achieved by setting the following d3 locale:

    d3.formatDefaultLocale({  
        "decimal": ",",
        "thousands": " ",
        "grouping": [3],
        "currency": ["", "€"]
    })

then using d3.format(",.2r") to format the strings

joewdavies avatar Feb 01 '21 14:02 joewdavies