A pie chart is a circular graph that contains slices that correspond to parts of the whole. The different slices of the chart and their proportions are defined by two given fields in your query.
- Tutorials:
- See:
Methods
# setAllowDecimals(allowDecimals)
Show decimal values. If false, the decimal part of the value will be truncated.
Parameters:
Name | Type | Description |
---|---|---|
allowDecimals |
boolean
|
Enable decimal values. |
# setDefaultFormater(func)
Set the legend format.
For more info, visit Highcharts doc..
Parameters:
Name | Type | Description |
---|---|---|
func |
function
|
Callback JavaScript function. |
# setDefaultFormaterTooltip(func)
Set the tooltip legend format. For more info, visit Highcharts doc.
Parameters:
Name | Type | Description |
---|---|---|
func |
function
|
Callback JavaScript function. |
# setHighchartsProperty(path, val)
Set any settings of the highcharts library.
Parameters:
Name | Type | Description |
---|---|---|
path |
string
|
Property name to add as path to the settings. |
val |
*
|
Value to set. |
# setKeys(keys)
Set the keys to be displayed.
Parameters:
Name | Type | Description |
---|---|---|
keys |
Array.<string>
|
Keys to show. |
# setLegend(bool)
Make the legend visible
Parameters:
Name | Type | Description |
---|---|---|
bool |
boolean
|
Enable the legend. |