Skip to main content
100%

Axis test

✓ Published0🌍 Public
AAltxis
Last edited May 14, 2021
Created on May 14, 2021
Forked from D3 Playground

Two charts compare how `d3.axisBottom` handles band scales with different domain sizes. The top axis uses a small domain of seven values, displaying every tick, while the bottom axis uses a domain of fifty values and reduces ticks to twenty using `d3.ticks`. Both scales use `d3.scaleBand` and `rangeRound`, with axes rendered as SVG `<g>` groups. The implementation builds axis configurations through a custom `makeAxis` function that conditionally selects tick values based on domain length.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes