Skip to main content
100%

Extent Ticks

✓ Published0🌍 Public
Mmbostock
Last edited Jul 31, 2019
Created on Jun 26, 2012

This example demonstrates how to display axis ticks at the extent of a scale, showing only the minimum and maximum values along the bottom of a chart. The visualization uses an identity scale to map the domain directly to pixel coordinates within a specified width. The code relies on d3.svg.axis with explicit tickValues set to the scale's domain, rendering the result as SVG elements. A simple margin-based layout positions the axis within a 960 by 500 pixel SVG canvas.

AI-generated description

An example of using an axis with explicit tick values to show the extent.

gpl-3.0 Licensed

Similar vizzes