In our project, we want to use a histogram slider with dates. Unfortunately, as d3-format doesn't support date and time, we would need to define a custom way of rendering the labels.
This PR will allow to pass in a function as formatLabelFunction which will be used instead of d3Format(...) if one is passed in.
I would be open to any kinds of changes, thanks!
In our project, we want to use a histogram slider with dates. Unfortunately, as
d3-format
doesn't support date and time, we would need to define a custom way of rendering the labels. This PR will allow to pass in a function asformatLabelFunction
which will be used instead ofd3Format(...)
if one is passed in. I would be open to any kinds of changes, thanks!