Ordinal Axis
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Aug 4, 2012
This example demonstrates how an ordinal axis displays categorical data along the x-axis, using fruit names as evenly spaced point labels. A single SVG graphic renders the axis with tick marks and text, created through D3.js v3’s `d3.scale.ordinal()` with `rangePoints()` and the `d3.svg.axis()` component. The code configures a bottom-oriented axis within a fixed margin and canvas size, styling labels via CSS.
AI-generated descriptiongpl-3.0 Licensed