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

java - Andrioid studio start fail: Fatal error initializing 'null' -

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

StringGrid issue in Delphi XE8 firemonkey mobile app -