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 - Gradle sync Error:Configuration with name 'default' not found -

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

html - jQuery UI Sortable - Remove placeholder after item is dropped -