ZoomCharts Documentation
TimeChart.settings.localization.calendar
Calendar specific localization settings. This section is used to initialize moment.js locale. See moment.js documentation for detailed description: http://momentjs.com/docs/#/customization/.
Properties
Specify the moment.js locale that should be used in the chart. While it is possible to set
months
, weekdays
etc. in the TimeChart settings, the parentLocale
should be used instead as
the TimeChart settings do not expose all available options and it recommended to use the locales
that are provided by moment.js.
Note that using this setting requires moment.js
2.12.0 or newer and the locale file must be included
in the page - the chart will not download it automatically.
Properties
Specifies the first day of the week. The default is 1
- Monday. Use either 0
or 7
for Sunday.
Specifies how the first week of the year is calculated. The default is 4
- the week that contains Jan 4th is counted as the first.
Note that this setting is not used by default because the default formatting specifies ISO week numbering. If you want to change that,
use w
and gggg
when specifying the week format strings.