Once you’ve mastered scales, you’re ready for axes.
As long as you’re following the margin convention this is going to be super easy. It takes three-ish steps:
- Create a scale (you’re doing this anyway)
- Create the axis, passing it your scale
- Append a
g
element to hold your axis, then use call
to attach the axis to that g
.
See the example below!
Open example in new window
Open example in new window