new GraphContent()
- Source:
The base content interface from which all graph controls can inherit.
Methods
(abstract) load(graph) → {object}
- Source:
Loads the input JSON for generating the graph.
Parameters:
Name | Type | Description |
---|---|---|
graph |
object | Graph instance |
Throws:
Returns:
- inherited class instance
- Type
- object
(abstract) redraw(graph) → {object}
- Source:
Force redraw the graph. This will be called when one of the content is removed. The situation can be when a legend item was clicked. The involves clearing the graph and redrawing the svg elements based on the data points that can be shown
Parameters:
Name | Type | Description |
---|---|---|
graph |
object | Graph instance |
Throws:
Returns:
- inherited class instance
- Type
- object
(abstract) resize(graph) → {object}
- Source:
Resizes the graph based on window resize event.
Parameters:
Name | Type | Description |
---|---|---|
graph |
object | Graph instance |
Throws:
Returns:
- inherited class instance
- Type
- object
(abstract) unload(graph) → {object}
- Source:
Remove the content from the chart.
Parameters:
Name | Type | Description |
---|---|---|
graph |
object | Graph instance |
Throws:
Returns:
- inherited class instance
- Type
- object