Multi purpose chart
Generates a multi purpose chart (single data or multi data series) for a data set, with the option to add drill-down trees for additional data sets. You must populate the data set by using a service.

Multi data series

Single Data Series

Appearance

Behavior

Extends:
com.ibm.bpm.coach.CoachView
Methods:

Inherited addClass(name, [replaced])
Add or replace the CSS classes for this view.
Example

addHorizontalLine(value, label)
Adds a horizontal line to the chart. Note: this function is not applicable to Donut and Pie Charts.

addStaticMenuAction(action, menuItemLabel, [icon], [badgeText], [onClickFunction])
Adds an action to the chart's popup menu and optionally attaches logic to it

addTempMenuAction(action, menuItemLabel, [icon], [badgeText], [onClickFunction])
Adds an action to the chart's popup menu and optionally attaches logic to it. This method should ONLY be called from the On Click event of the chart - otherwise it will not be displayed in the menu

addVerticalLine(value, label)
Adds a vertical line to the chart. Note: this function is not applicable to Donut and Pie Charts.

defocusSeries([seriesName])
Defocus the DataSeries in the chart

drillUp()
Goes one step up in the Drill Down Tree hierarchy

focusSeries([seriesName])
Focus the DataSeries in the chart

getColorStyle() Returns: {string}
Get the color style for the background. NOTE: This always returns the color as set, to avoid ambiguity always set the color using "T"|"P"|"I"|"S"|"W"|"G"

getCurrentDimension() Returns: {string}
Get the current drilldown dimension (the current hierarchical level at the drill-down tree). Only functional if drill-down is enabled

getCurrentDimensionCriteria() Returns: {object}
Returns an object with a name/value pair that describes the current position of the drill-down tree; Only functional if drill-down is enabled.
Example

getDataSeries() Returns: {DataSeries}
Get the current data series being used to populate the chart

getDataSeriesColorStyle() Returns: {string}
Returns color style currently set for data series

getDataSeriesCustomColorStyle() Returns: {object | array}
Returns color style currently set for data series

getDrillDownStack() Returns: {NameValuePair[]}
Get the stack/structure of the drill-down tree. Only functional if drill-down is enabled

getQueryData() Returns: {*}
Gets the input of the Data Series AJAX Service

getSelectedDataPoint() Returns: {object}
Returns the last selected data point in the chart

getType() Returns: {string}
Get descriptive string representing the type of control

groupSeries(whether, [seriesName])
Groups the DataSeries in the chart.
Example

Inherited hide(collapseFlag)
Hide the view.
Example

hideSeries([seriesName])
Hides the DataSeries in the chart

Inherited isBound() Returns: {boolean}
Indicate the bound status of the view.

Inherited isEnabled() Returns: {boolean}
Check whether the view is enabled.
Example

Inherited isLabelVisible() Returns: {boolean}
Check whether the view label is visible.
Example

Inherited isVisible() Returns: {boolean}
Check whether the view is visible.
Example

Inherited propagateUpValueChange(event) Returns: {boolean}
Propagate the value change of the view up through the parent views.
Example

redrawChart()
Redraws the chart. This operation simply redraws the chart and does not refresh the current chart data. It is useful
to quickly redraw the chart when it is not displaying properly. It is quicker than doing a full refresh.

refresh()
Updates the chart by calling the AJAX service and using the Data Series data returned.

removeHorizontalLine([label])
Removes horizontal line with specified label. If no label is specified, all horizontal lines will be removed. Note: this function is not applicable to Donut and Pie Charts.

removeMenuAction(actionId)
Removes an action from the chart's popup menu

removeVerticalLine([label])
Removes vertical line with specified label. If no label is specified, all vertical lines will be removed. Note: this function is not applicable to Donut and Pie Charts.

setDataSeriesColorStyle(style)
Set the color style for the charted data series. NOTE: to avoid ambiguity always set the color using "D"|"P"|"I"|"S"|"W"|"G". Note that the Default option is available instead of Light for Pie, Donut, and Multi Purpose charts. All other charts have the Light option, instead of Default

setDataSeriesCustomColorStyle(style)
Set color for the charted data series.

Inherited setEnabled(enabled, required)
Enable or disable the view.
Example

Inherited setLabelVisible(visible)
Show or hide the view label.
Example

setQueryData(queryData)
Sets the input to the Data Series AJAX Service

Inherited setViewData(data, createPseudoBinding)
Set or update the bound data associated with the view. It applies only to views with bound data.

Note: It should only be used with simple type bindings, or complex type bindings with simple type properties.
It should not be used with bindings that have properties that are lists or compext types. For complex types, set the bindings by using
the binding.set pattern, as described in the Binding data and configuration options documentation section.
Example

Inherited setVisible(visible, collapse)
Show or hide the view.
Examples

Inherited show()
Show this view.
Example

showSeries([seriesName])
Shows the DataSeries in the chart

transform(chartType, seriesName)
Transforms the chart taking in a new chart type with the specified series name.
Example

Inherited triggerFormulaUpdates([phase])
Broadcast the expression trigger for the specified view.
Example