Members
lineTransitionIn
Animate new line drawing in
onClick
Open Netlify build logs for selected build. Prevent clicks when no builds present
onMouseLeave
Handle mouse leave
onMouseMove
Calculate which data point is selected on mouseover. Prevent when no builds present.
onTouchStart
Prevent default on touch start which stops the entire page moving when a finger drags on the interface. On touch screens the tool tip stays on the screen after dragging but a brief touch will clear it.
Methods
closestDataPoint()
Get the closest data point based on mouse position in listening rect. Also handles a touch event for a finger dragging on the interface.
createDataVis()
Called the first time the page is loaded to setup the visualisation
initialiseAccessors()
Setup the accessors for the visualisation
initialiseDataVis()
Setup the structure of the visualisation
kpiLineTransition()
Animate KPI lines
setGenerators()
Setup the generators for the visualisation which can be updated as the data set changes
setScales()
Setup the scales for the visualisation which can be updated as the data set changes
tweenDashIn()
Animate new line drawing in
updateDataVis()
When the data set is updated this will cause the visualisation to animate