Constructor
new VisualSet(options)
Create a visual set.
Parameters:
| Name | Type | Description |
|---|---|---|
options |
Object | Configuration options. |
- 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:
addVisual(visual)
Add the specified visual to this set.
Parameters:
| Name | Type | Description |
|---|---|---|
visual |
visual | The visual to add. |
- Source:
draw()
Draw all visuals in this set.
- Source:
erase()
Erase all visuals in this set.
- Source:
getVisuals() → {Array}
Get all visuals from this set.
- Source:
Returns:
An array of visuals or an empty array.
- Type
- Array
initialize(parentElement, width, height, timeScale)
Initialize this visual set.
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: