Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

in my app, i use regular d3.scaleBand(), and the domain() is set manually. if i recall correctly, d3.scaleTime() requires every date to exist, which makes it harder to handle "null" data for missing dates.

regarding UX design, d3.scaleBand() fits perfectly for my use case because i can:

  • display 7 bars (one for each day) to represent a week.
  • display 30 bars (one for each day) to represent a month.
  • display 12 bars (one for each month) to represent a year.
  • display n-bars (one for each year) to represent ranged years.
  • etc.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@hiddenroadss
Comment options

@robifr
Comment options

@hiddenroadss
Comment options

@robifr
Comment options

@hiddenroadss
Comment options

Answer selected by hiddenroadss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants