Interface: Chart

Chart

Extends

Methods

get(name) → {Object}

Gets the value of the specified property.
Parameters:
Name Type Description
name String The name of the property.
Inherited From:
Returns:
- The property's value.
Type
Object

getDataPointIndex(event)

Returns Datapoint index of point clicked from chart
Parameters:
Name Type Description
event Event User MouseEvent

getId() → {ID}

Returns the ID of the widget.
Inherited From:
Returns:
- The ID of the widget
Type
ID

getValue() → {Object}

Returns the widget's value.
Inherited From:
Returns:
- The widget's value.
Type
Object

hide()

Hides the widget.
Inherited From:

isEnabled() → {Boolean}

Returns true if the widget is enabled.
Inherited From:
Returns:
- True if enabled, otherwise false.
Type
Boolean

set(name, value)

Sets the value of the specified property.
Parameters:
Name Type Description
name String The name of the property.
value Object The new value.
Inherited From:

setData(data, options)

Sets a data set that will be used to populate the chart
Parameters:
Name Type Description
data Array The data set to be used to populate the chart
options Object Options object for setting data, label and set attribute names

setEnabled(Enabled)

Enables/disables the widget.
Parameters:
Name Type Description
Enabled Boolean True to enable the widget, false to disable.
Inherited From:

setLabel(Label)

Sets the label on the button.
Parameters:
Name Type Description
Label String Text or HTML to set as the label on this button.
Overrides:

setQuery(queryName)

Sets the query used to populate the chart.
Parameters:
Name Type Description
queryName String The name of the query.

setStyle(Object)

Set the widget-style
Parameters:
Name Type Description
Object Object with style-properties
Inherited From:

setValue()

Sets the widget's value.
Parameters:
Type Description
Object The new value.
Overrides:

show()

Shows the widget.
Overrides:

showTooltip(idx)

Displays tooltip on datapoint of chart
Parameters:
Name Type Description
idx Number The idx used to select datapoint on chart