cal-heatmap icon indicating copy to clipboard operation
cal-heatmap copied to clipboard

Specify number-format for subDomainTitleFormat

Open k-nut opened this issue 9 years ago • 2 comments

You provide the subDomainDateFormat that lets the users format the date according to their needs. It would be nice to have a subDomainCountFormat so that the values can be formated as well (e.g. German uses a . as 1000-delimiter and , as fraction delimiter as in 10.000,20). If you agree that this would be useful I can send in a small pull request. Just wanted to make sure that this functionality does not already exist and I only missed it in the docs.

k-nut avatar Apr 27 '15 16:04 k-nut

What values that option would be formatting ? The values inside the cells, or the values in the title ?

It would be interesting to allow more formatting options, such as the decimal mark too.

wa0x6e avatar May 17 '15 20:05 wa0x6e

Take a look at https://github.com/mbostock/d3/wiki/Formatting, it may help

wa0x6e avatar May 17 '15 22:05 wa0x6e

Added in v4

wa0x6e avatar Dec 01 '22 15:12 wa0x6e