Module

Pie

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:

View Source widgets/pie.js, line 11

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.

View Source widgets/pie.js, line 100

# setDefaultFormater(func)

Set the legend format.

For more info, visit Highcharts doc..

Parameters:
Name Type Description
func function

Callback JavaScript function.

View Source widgets/pie.js, line 80

# setDefaultFormaterTooltip(func)

Set the tooltip legend format. For more info, visit Highcharts doc.

Parameters:
Name Type Description
func function

Callback JavaScript function.

View Source widgets/pie.js, line 68

# 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.

View Source widgets/pie.js, line 90

# setKeys(keys)

Set the keys to be displayed.

Parameters:
Name Type Description
keys Array.<string>

Keys to show.

View Source widgets/pie.js, line 39

# setLegend(bool)

Make the legend visible

Parameters:
Name Type Description
bool boolean

Enable the legend.

View Source widgets/pie.js, line 57

# setValue(val)

Set the value to show.

Parameters:
Name Type Description
val string

Value to show.

View Source widgets/pie.js, line 48