javascript - Give different tickFormat() according to time period displayed? -
is possible give different tickformat()
type axis labels depending on time period being displayed?
for example if th time range day, show hours tickformat(d3.time.format('%i'))
if week show days tickformat(d3.time.format('%a'))
if month show weeks tickformat(d3.time.format('%w'))
and on , on...
Comments
Post a Comment