@whitespaceenergy/project-timeline
v2.0.5
Published
Plot a sequence of projects on a timeline
Downloads
5
Readme
import ProjectTimeline from '@whitespaceenergy/project-timeline'
<ProjectTimeline
start={number} // Required
totalDuration={number} // Required
projects={[
{
start: number, // Required
end: number, // Required
name: string,
tooltip: (string | function),
markerColor: '#000000',
style: object,
onMouseEnter: function,
onMouseLeave: function,
onClick: function,
},
...
]}
startView={number}
viewDuration={number}
showYears={boolean}
tooltipPosition="right" (default) | "bottom" | "left" | "top"
tooltipTrigger="hover" (default) | "click"
minWidthPercentageToShowName={number}
style={object}
timelineStyle={object}
/>