On this page
data_object
Codeblock Arguments
The only (currently) 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 enddivHeight
: 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:
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