Skip to content

Interface: LocaleFormat ​

Number and date formats of a locale (plotly.js's format object, all keys resolved).

Properties ​

PropertyTypeDescription
currencyreadonly string[]Currency prefix and suffix ($ in d3-format specifiers).
datestring%x.
dateTimestring%c.
dayMonthstringDate tick label of days (first line; the year goes on the second).
dayMonthYearstringFull date under time tick labels and in hover labels.
daysreadonly string[]Day names, Sunday first (%A).
decimalstringDecimal separator (overridden by layout.separators).
groupingreadonly number[]Digits per thousands group, e.g. [3].
monthstringDate tick label of months.
monthsreadonly string[]Month names (%B).
periodsreadonly string[]AM and PM (%p).
shortDaysreadonly string[]Short day names, Sunday first (%a).
shortMonthsreadonly string[]Short month names (%b).
thousandsstringThousands separator (overridden by layout.separators).
timestring%X.
yearstringDate tick label of whole years.

Released under the MIT License.