How to localize the date axis format #2104
-
Please look at the third graph, it doesn't display anything, but the first one does. I also couldn't achieve the correct date format in a regular table, maybe because I'm new to this and don't know the proper usage. However, I couldn't find more detailed instructions in the documentation |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
formatMonth is used for month numbers (from 0 to encode January, to 11 to encode December). It does not apply to JavaScript Dates. What are you trying to achieve? |
Beta Was this translation helpful? Give feedback.
-
You could try this: https://observablehq.com/@recifs/plot-a-custom-format-for-the-date-axis replacing |
Beta Was this translation helpful? Give feedback.
You could try this: https://observablehq.com/@recifs/plot-a-custom-format-for-the-date-axis
replacing
es-AR
byzh-CN
gets you half of the way. I'm not sure how to generate the digits