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

javascript - Create websocket without connecting -

how to do line continuation in perl debugger for entering raw multi-line text (EOT)? -

android - Linear layout children not scrolling -