-
Notifications
You must be signed in to change notification settings - Fork 0
Axes
mbostock edited this page Jun 7, 2011
·
13 revisions
Each example shows axes in four orientations. In clockwise order: top, right, bottom, left.
- grid - major, minor, none
- domain - open, closed (true/false?)
- tick - tick, none (true/false?)
- labels - point, section
An open domain means that only ticks or grid lines are drawn:

A closed domain means that we can visualize the domain extent. This can be done in by drawing a path:

Or by filling the background. In this case we include major and minor grid lines which subdivide the ticks:

Note that the grid lines can also be drawn with an open domain, as above. And the background need not be filled—we could instead stroke the background to create a frame.
Sometimes we want to label sections rather than points on the axes:
