Chart
common. Chart
Base class for charts subclasses.
Extends
(abstract) new Chart(optionsopt)
Parameters:
Name | Type | Description | |
---|---|---|---|
options |
ChartOptions | <optional> | Common chart options |
Emits:
Methods
(protected) init(options)
addGradient(gradient) → {Gradient}
Parameters:
Name | Type | Description |
---|---|---|
gradient |
Gradient | GradientOptions |
Returns:
- Type
- Gradient
removeGradient(gradient)
(protected) adjustSize()
setElement(el)
Parameters:
Name | Type | Description |
---|---|---|
el |
Element |
(protected) beforeSetElement()
(protected) afterSetElement()
(protected) addChart(chart)
getAllCharts() → {Array.<Chart>}
Returns:
All the charts sharing this chart's `el` property
- Type
- Array.<Chart>
addTooltip(id, options)
Parameters:
Name | Type | Description |
---|---|---|
id |
string | Identifier for this tooltip |
options |
TooltipOptions | Options for this tooltip |
removeTooltip()
(protected) onAxisLabel(options) → {string}
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | |||||||||||||||||
Properties
|
Returns:
Label contents
- Type
- string
hideTooltip(idopt)
Parameters:
Name | Type | Description | |
---|---|---|---|
id |
string | <optional> | ID of the tooltip to hide |
showTooltip(idopt)
Parameters:
Name | Type | Description | |
---|---|---|---|
id |
string | <optional> | ID of the tooltip to show |
suspendTooltip(idopt)
Parameters:
Name | Type | Description | |
---|---|---|---|
id |
string | <optional> | ID of the tooltip to suspend |
resumeTooltip(idopt)
Parameters:
Name | Type | Description | |
---|---|---|---|
id |
string | <optional> | ID of the tooltip to suspend |
isTooltipAvailable(idopt) → {boolean}
Parameters:
Name | Type | Description | |
---|---|---|---|
id |
string | <optional> | ID of the tooltip to check |
Returns:
Is the tooltip suspended or disabled
- Type
- boolean
isTooltipPointing() → {boolean}
Returns:
Is the tooltip actively handling pointer events
- Type
- boolean
setTooltipPosition(options, idopt)
Parameters:
Name | Type | Description | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | ||||||||||||||||||
Properties
|
|||||||||||||||||||
id |
string | <optional> | ID of the tooltip to position |
(protected) updateVisibleTooltips()
setZoom(options)
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | |||||||||||||||||||||||||||||||
Properties
|
setData(dataopt, optionsopt)
Parameters:
Name | Type | Description | |
---|---|---|---|
data |
ChartData | <optional> | |
options |
object | <optional> |
render(optionsopt)
Parameters:
Name | Type | Description | |
---|---|---|---|
options |
object | <optional> |
(protected) applyDataZoom()
(protected) applyVisualZoom()
(protected) beforeRender(optionsopt)
Parameters:
Name | Type | Description | |
---|---|---|---|
options |
object | <optional> | Render options |