On this page
data_object
Codeblock Arguments
The only (currently) required argument for Timeline Codeblocks is tags
.
Breaking down the filters:
tags
: the tags you want displayed on your timelinestartDate
: where you want your timeline to initially start displayingendDate
: where you initially want your timeline to enddateFormat
: a string with the format you want your dates to be displayed in. See below for acceptable valuesdivHeight
: how tall you would like the timeline to beminDate
: minimum end-cap to prevent scrolling or viewing before this datemaxDate
: maximum end-cap to prevent scrolling or viewing after this datezoomInLimit
: the furthest in you will be able to zoom. See below for acceptable valueszoomOutLimit
: the furthest out you will be able to zoomtype
: horizontal-specific key. Passflat
in order to render a horizontal timeline
Acceptable values for filters:
dateFormat
:- set to an empty string
""
by default - years:
YYYY
: unfiltered, display as however you pass itYY
: last 2 digits of year, example, pass in 2019 and it will display as19
- months:
MM
: unfiltered, display as however you pass itM
: abbr month, display asJan
MMM
: full month, display asJanuary
- days:
DD
: unfiltered, display as however you pass itD
: 1st, 2nd, 3rd, etc., display as1st
DDD
: Sun, Mon, Tue, etc., display asSun
DDDD
: Sunday, Monday, Tuesday, etc., display asSunday
- hours:
HH
: unfiltered, display as however you pass itH
: hours, display as00
- set to an empty string
startDate
,endDate
,minDate
,maxDate
: use the same format (YYYY-MM-DD-HH
) as event date parameterszoomInLimit
:- You can either use the built-in timescales, or you can provide a value (in milliseconds) manually. Acceptable values are
day
,week
,month-detail
,month-vague
, andyear
. Do not include to have no restrictions on zooming in (default behaviour).day
zooms down to one day, but still shows hoursweek
zooms down to about a week and shows the days of that weekmonth-detail
zooms down to about a month and shows each of the daysmonth-vague
zooms down to about a month but does not show the daysyear
zooms down to about a year and shows each of the months
- You can either use the built-in timescales, or you can provide a value (in milliseconds) manually. Acceptable values are
zoomOutLimit
:- requires a time, in milliseconds. One year is around
32140800000
, the default value is315360000000000
, which is about 10,000 years
- requires a time, in milliseconds. One year is around