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