This example uses d3.timeFormatLocale to define a custom localized multi-scale time format for use with d3-axis. A simpler approach is to use d3.timeFormatDefaultLocale.