Class: ProgressIndicator

ProgressIndicator(options)

A ProgressIndicator is an animated visual for indicating the progress of time along the X axis.

Constructor

new ProgressIndicator(options)

Create a progress indicator.
Parameters:
Name Type Description
options Object Configuration options.
Author:
  • Lawrence Fyfe
Source:

Methods

addProperty(name, value)

Add the specified property to this visual. The property is stored as [name, value].
Parameters:
Name Type Description
name string The name of the property.
value string The value of the property.
Source:

draw()

Draw this visual at the specified x location.
Source:

erase()

Erase this visual.
Source:

getX() → {number}

Get x.
Source:
Returns:
The x value.
Type
number

initialize(parentElement, width, height, timeScale)

Initialize this visual.
Parameters:
Name Type Description
parentElement Element The parent element.
width number The parent width.
height number The parent height.
timeScale d3.scaleLinear The time scale.
Source:

move()

Move this visual to the specified x location.
Source:

setX(x)

Set x.
Parameters:
Name Type Description
x number The x value.
Source: