Skip to main content
100%

Localized Time Axis

✓ Published0🌍 Public
Mmbostock
Last edited Dec 5, 2016
Created on Dec 5, 2016

A localized time axis displays a one-year span from January 2000 to January 2001, with tick labels rendered in Russian. The visualization loads a locale-specific JSON file from the d3-time-format package and applies it via `d3.timeFormatDefaultLocale`. The axis is generated with `d3.axisBottom` on an SVG canvas, using a `d3.scaleTime` domain and range. This example demonstrates how to customize date formatting for regional languages in D3 visualizations.

AI-generated description

This example uses d3.timeFormatDefaultLocale to change the locale of d3-axis. A more flexible approach is to use d3.timeFormatLocale.

gpl-3.0 Licensed

Similar vizzes