Skip to main content
100%

Month Axis

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Feb 17, 2012

A month axis displays a horizontal time scale spanning the year 2012, with a tick for each month. The code uses `d3.time.scale` to map a date domain to pixel coordinates, `d3.svg.axis` for the bottom-oriented axis, `d3.time.months` for tick spacing, and `d3.time.format` to render month abbreviations as labels. The SVG output places tick text to the right and below each mark.

AI-generated description
gpl-3.0 Licensed

Similar vizzes