Zero Ticks
✓ Published0🌍 Public
Mmbostock
Last edited Jul 31, 2019
Created on Jun 26, 2012
This example demonstrates a minimal SVG axis from D3 v3 that displays only the domain path, with tick marks and labels completely suppressed by setting `ticks(0)`. The axis is rendered using `d3.svg.axis`, oriented to the bottom of a chart area defined by fixed margins, and styled with a black stroke and crisp edges. The underlying scale is a `d3.scale.identity`, mapping a width-based domain to pixel coordinates. The visible output is a single horizontal line, highlighting how axis components can be selectively hidden while retaining the baseline.
AI-generated descriptionAn example of using an axis with no ticks, showing only the domain path.
gpl-3.0 Licensed