Skip to main content
100%

Ordinal Tick Filtering

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on May 22, 2013

This example demonstrates how to filter tick labels on an ordinal axis by displaying only every other letter. A D3 v3 SVG axis renders the alphabet from A to Z, with the tick format function returning null for odd indices to hide those labels. The axis uses d3.svg.axis with an ordinal scale and rangePoints, while the text and line styling come from standard SVG CSS classes.

AI-generated description

An example of filtering ticks on an ordinal axis.

gpl-3.0 Licensed

Similar vizzes