MCPcopy Index your code
hub / github.com/plotly/plotly.js / _dateTick0

Function _dateTick0

src/lib/dates.js:55–63  ·  view source on GitHub ↗
(calendar, sunday)

Source from the content-addressed store, hash-verified

53 * bool sunday is for week ticks, shift it to a Sunday.
54 */
55function _dateTick0(calendar, sunday) {
56 if(isWorldCalendar(calendar)) {
57 return sunday ?
58 Registry.getComponentMethod('calendars', 'CANONICAL_SUNDAY')[calendar] :
59 Registry.getComponentMethod('calendars', 'CANONICAL_TICK')[calendar];
60 } else {
61 return sunday ? '2000-01-02' : '2000-01-01';
62 }
63}
64
65/*
66 * dfltRange: for each calendar, give a valid default range

Callers 1

dates.jsFile · 0.85

Calls 1

isWorldCalendarFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…