Builds a Line Graph.
Parameters:
Name | Type | Description |
---|---|---|
mode |
String | (init / refresh) |
- Source:
Methods
(inner) buildScales()
builds the scales for the x and y axes
- Source:
(inner) drawAxis()
draws the x and y axes on the svg
- Source:
(inner) enter(points)
Runs when a new element is added to the dataset
Parameters:
Name | Type | Description |
---|---|---|
points |
Object | (svg element) |
- Source:
(inner) exit(points)
Runs when an element is removed from the dataset
Parameters:
Name | Type | Description |
---|---|---|
points |
Object | (svg element) |
- Source:
(inner) transition(points)
Runs when a value of an element in dataset is changed
Parameters:
Name | Type | Description |
---|---|---|
points |
Object | (svg element) |
- Source: