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
Post a Comment