d3.formatDefaultLocale({
decimal: ".",
thousands: ",",
grouping: [3],
currency: ["£", ""]
});
d3.timeFormatDefaultLocale({
dateTime: "%a %e %b %Y %X",
date: "%d/%m/%Y",
time: "%H:%M:%S",
periods: ["AM", "PM"],
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
});
Use the
initialisehelper function used3.formatDefaultLocale()andd3.timeFormatDefaultLocale()functions to set the locale to be GB.and