BarChart
bar. BarChart
Extends
new BarChart(optionsopt)
Parameters:
Name | Type | Description | |
---|---|---|---|
options |
BarChartOptions | ChartOptions | <optional> |
Methods
(protected) init(options)
Parameters:
Name | Type | Description |
---|---|---|
options |
ChartOptions |
addGradient(gradient) → {Gradient}
Parameters:
Name | Type | Description |
---|---|---|
gradient |
Gradient | GradientOptions |
Returns:
- Type
- Gradient
removeGradient(gradient)
Parameters:
Name | Type | Description |
---|---|---|
gradient |
Gradient |
(protected) adjustSize()
setElement(el)
Parameters:
Name | Type | Description |
---|---|---|
el |
Element |
(protected) beforeSetElement()
(protected) afterSetElement()
getColor() → {external:CSS_Color}
Returns:
- Type
- external:CSS_Color
(protected) addChart(chart)
Parameters:
Name | Type | Description |
---|---|---|
chart |
Chart |
addTooltip(id, options)
Parameters:
Name | Type | Description |
---|---|---|
id |
string | Identifier for this tooltip |
options |
TooltipOptions | Options for this tooltip |
removeTooltip()
(protected) onTooltip(options) → {Element}
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | ||||||||||
Properties
|
Returns:
Tooltip contents
- Type
- Element
(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
setTooltipPosition(options, idopt)
Parameters:
Name | Type | Description | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | ||||||||||||||||||
Properties
|
|||||||||||||||||||
id |
string | <optional> | ID of the tooltip to position |
(protected) updateVisibleTooltips()
findNearestFromXCoord(coord, dataopt) → {DataEntry}
Parameters:
Name | Type | Default | Description | |
---|---|---|---|---|
coord |
number | X coord | ||
data |
Array.<DataEntry> | <optional> |
this._renderData
|
Returns:
- Type
- DataEntry
findNearestFromXValue(value, dataopt) → {DataEntry}
Parameters:
Name | Type | Default | Description | |
---|---|---|---|---|
value |
number | X value | ||
data |
Array.<DataEntry> | <optional> |
this._renderData
|
Returns:
- Type
- DataEntry
findNearestIndexFromXCoord(coord, dataopt) → {number}
Parameters:
Name | Type | Default | Description | |
---|---|---|---|---|
coord |
number | X coord | ||
data |
Array.<DataEntry> | <optional> |
this.normalizedData
|
Returns:
- Type
- number
findNearestIndexFromXValue(value, dataopt) → {number}
Parameters:
Name | Type | Default | Description | |
---|---|---|---|---|
value |
number | X value | ||
data |
Array.<DataEntry> | <optional> |
this.normalizedData
|
Returns:
- Type
- number
setZoom(options)
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | |||||||||||||||||||||||||||||||
Properties
|
setData(dataopt, optionsopt)
Parameters:
Name | Type | Description | |
---|---|---|---|
data |
ChartData | <optional> | |
options |
object | <optional> |
(protected) normalizeData(data) → {Array.<DataEntry>}
Parameters:
Name | Type | Description |
---|---|---|
data |
ChartData |
Returns:
- Type
- Array.<DataEntry>
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 |
(protected) adjustScale()
(abstract, protected) doLayout()
(protected) afterRender()
xValueScale(value) → {number}
Parameters:
Name | Type | Description |
---|---|---|
value |
number |
Returns:
- Type
- number
yValueScale(value) → {number}
Parameters:
Name | Type | Description |
---|---|---|
value |
number |
Returns:
- Type
- number
xValueToCoord(value) → {number}
Parameters:
Name | Type | Description |
---|---|---|
value |
number |
Returns:
- Type
- number
yValueToCoord(value) → {number}
Parameters:
Name | Type | Description |
---|---|---|
value |
number |
Returns:
- Type
- number
xCoordScale(coord) → {number}
Parameters:
Name | Type | Description |
---|---|---|
coord |
number |
Returns:
- Type
- number
yCoordScale(coord) → {number}
Parameters:
Name | Type | Description |
---|---|---|
coord |
number |
Returns:
- Type
- number
xCoordToValue(coord) → {number}
Parameters:
Name | Type | Description |
---|---|---|
coord |
number |
Returns:
- Type
- number
yCoordToValue(coord) → {number}
Parameters:
Name | Type | Description |
---|---|---|
coord |
number |
Returns:
- Type
- number
reset()
(abstract, protected) doReset()
makePath(coords, optionsopt)
Parameters:
Name | Type | Description | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
coords |
Array.<CoordTuple> | ||||||||||||||
options |
object | <optional> | |||||||||||||
Properties
|