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

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

Android Gson.fromJson error -