Bandwidth is the size allocated to each category interval in a band scale. In a bar chart, yScale.bandwidth() returns each rectangle’s thickness, used for its height. section 3.4.3
Use bandwidth with a D3 band scale to size and space categorical bars:
- Add paddingInner(0.2) when adjacent bars look cramped; the value represents 20% spacing between bands. section 3.4.3
