Timeline
Gantt bars and milestones. Dates are timestamps.
Code
ts
createChart(host, {
type: "timeline",
rows: ["Reviews", "Design", "Build", "Launch"],
now: 1779235200000,
nowLabel: "Today",
marks: [
{
row: "Reviews",
at: 1770681600000,
label: "First review"
},
{
row: "Reviews",
at: 1777680000000,
label: "Second review"
}
],
bars: [
{
row: "Design",
start: 1768176000000,
end: 1772668800000
},
{
row: "Build",
start: 1771545600000,
end: 1781481600000
},
{
row: "Launch",
start: 1781049600000,
end: 1785369600000
}
]
});Every field is in the API. Change this chart in the playground.