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

Popular posts from this blog

android - Linear layout children not scrolling -

javascript - Create websocket without connecting -

android - Gradle sync Error:Configuration with name 'default' not found -