d3.js - date format in d3, would like to have month as an integer instead of decimal -


i have format 6/19 instead of 06/19 x axis. not seem provide way of doing on official documentation: https://github.com/mbostock/d3/wiki/time-formatting

any clues? thanks?

see part padding:

the % sign indicating directive may followed padding modifier:

  • 0 - zero-padding
  • _ - space-padding
  • - - disable padding

for example, "%-m/%-d" disable padding both month , date, giving "6/1" june 1st, opposed "%m/%d" gives "06/01".


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -