sap.suite.ui.commons.BulletChart.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.suite.ui.commons.BulletChart with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of informations as described in Element.extend.
Parameters:
{string} | sClassName | name of the class to be created |
{object} | oClassInfo? | object literal with informations about the class |
{function} | FNMetaImpl? | constructor function for the metadata object. If not given, it defaults to sap.ui.core.ElementMetadata. |
Returns:
{function} | the created class / constructor function |
Returns a metadata object for class sap.suite.ui.commons.BulletChart.
Returns:
Adds some threshold oThreshold
to the aggregation named thresholds
.
Parameters:
Returns:
Attach event handler
fnFunction
to the 'press' event of this
sap.suite.ui.commons.BulletChart
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.suite.ui.commons.BulletChart
.
itself. The event is fired when the user chooses the bullet chart.
Parameters:
{object} | oData? | An application specific payload object, that will be passed to the event handler along with the event object when firing the event. |
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.suite.ui.commons.BulletChart . itself. |
Returns:
Destroys the actual in the aggregation named actual
.
Returns:
Destroys all the thresholds in the aggregation named thresholds
.
Returns:
Detach event handler
fnFunction
from the 'press' event of this
sap.suite.ui.commons.BulletChart
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener | Context object on which the given function had to be called. |
Returns:
Fire event press to attached listeners.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
Getter for aggregation actual
.
The bullet chart actual data.
Returns:
getActualValueLabel(): string
Getter for property
actualValueLabel
. If set, displays a specified label instead of the numeric actual value.
Default value is empty/undefined
Returns:
{string} | the value of property actualValueLabel |
getDeltaValueLabel(): string
Getter for property
deltaValueLabel
. If set, displays a specified label instead of the calculated numeric delta value.
Default value is empty/undefined
- Since:
- 1.23
Returns:
{string} | the value of property deltaValueLabel |
getForecastValue(): float
Getter for property
forecastValue
. The forecast value that is displayed in Actual mode only. If set, the forecast value bar appears in the background of the actual value bar.
Default value is empty/undefined
- Since:
- 1.21
Returns:
{float} | the value of property forecastValue |
getMaxValue(): float
Getter for property
maxValue
. The maximum scale value for the bar chart used for defining a fixed size of the scale in different instances of this control.
Default value is empty/undefined
Returns:
{float} | the value of property maxValue |
getMinValue(): float
Getter for property
minValue
. The minimum scale value for the bar chart used for defining a fixed size of the scale in different instances of this control.
Default value is empty/undefined
Returns:
{float} | the value of property minValue |
Getter for property
mode
. The mode of displaying the actual value itself or the delta between the actual value and the target value. If not set, the actual value is displayed.
Default value is Actual
- Since:
- 1.23
Returns:
getScale(): string
Getter for property
scale
. The scaling suffix that is added to the actual and target values.
Default value is empty/undefined
Returns:
{string} | the value of property scale |
Getter for property
scaleColor
. The background color of the scale.
Default value is MediumLight
- Since:
- 1.23
Returns:
getShowActualValue(): boolean
Getter for property
showActualValue
. If set to true, shows the numeric actual value. This property works in Actual mode only.
Default value is true
Returns:
{boolean} | the value of property showActualValue |
getShowDeltaValue(): boolean
Getter for property
showDeltaValue
. If set to true, shows the calculated delta value instead of the numeric actual value regardless of the showActualValue setting. This property works in Delta mode only.
Default value is false
- Since:
- 1.23
Returns:
{boolean} | the value of property showDeltaValue |
getShowTargetValue(): boolean
Getter for property
showTargetValue
. If set to true, shows the numeric target value.
Default value is true
Returns:
{boolean} | the value of property showTargetValue |
getShowValueMarker(): boolean
Getter for property
showValueMarker
. If set to true, shows the value marker.
Default value is false
- Since:
- 1.23
Returns:
{boolean} | the value of property showValueMarker |
Getter for property
size
. The size of the chart. If not set, the default size is applied based on the size of the device tile.
Default value is Auto
Returns:
getTargetValue(): float
Getter for property
targetValue
. The target value that is displayed as a black vertical bar.
Default value is empty/undefined
Returns:
{float} | the value of property targetValue |
getTargetValueLabel(): string
Getter for property
targetValueLabel
. If set, displays a specified label instead of the numeric target value.
Default value is empty/undefined
Returns:
{string} | the value of property targetValueLabel |
Getter for aggregation thresholds
.
The bullet chart thresholds data.
Returns:
getWidth(): string
Getter for property
width
. The width of the chart. If it is not set, the size of the control is defined by the size property.
Default value is empty/undefined
- Since:
- 1.22
Returns:
{string} | the value of property width |
indexOfThreshold(oThreshold): int
Checks for the provided sap.suite.ui.commons.BulletChartData
in the aggregation named thresholds
and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | the index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a threshold into the aggregation named thresholds
.
Parameters:
{sap.suite.ui.commons.BulletChartData} | oThreshold | the threshold to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the threshold should be inserted at; for a negative value of iIndex , the threshold is inserted at position 0; for a value greater than the current size of the aggregation, the threshold is inserted at the last position |
Returns:
Removes all the controls in the aggregation named thresholds
.
Additionally unregisters them from the hosting UIArea.
Returns:
Removes an threshold from the aggregation named thresholds
.
Parameters:
Returns:
Setter for the aggregated actual
.
Parameters:
Returns:
Setter for property
actualValueLabel
.
Default value is empty/undefined
Parameters:
{string} | sActualValueLabel | new value for property actualValueLabel |
Returns:
Setter for property
deltaValueLabel
.
Default value is empty/undefined
Parameters:
{string} | sDeltaValueLabel | new value for property deltaValueLabel |
- Since:
- 1.23
Returns:
Setter for property
forecastValue
.
Default value is empty/undefined
Parameters:
{float} | fForecastValue | new value for property forecastValue |
- Since:
- 1.21
Returns:
Setter for property
maxValue
.
Default value is empty/undefined
Parameters:
{float} | fMaxValue | new value for property maxValue |
Returns:
Setter for property
minValue
.
Default value is empty/undefined
Parameters:
{float} | fMinValue | new value for property minValue |
Returns:
Setter for property
mode
.
Default value is Actual
Parameters:
- Since:
- 1.23
Returns:
Setter for property
scale
.
Default value is empty/undefined
Parameters:
{string} | sScale | new value for property scale |
Returns:
Setter for property
scaleColor
.
Default value is MediumLight
Parameters:
- Since:
- 1.23
Returns:
Setter for property
showActualValue
.
Default value is true
Parameters:
{boolean} | bShowActualValue | new value for property showActualValue |
Returns:
Setter for property
showDeltaValue
.
Default value is false
Parameters:
{boolean} | bShowDeltaValue | new value for property showDeltaValue |
- Since:
- 1.23
Returns:
Setter for property
showTargetValue
.
Default value is true
Parameters:
{boolean} | bShowTargetValue | new value for property showTargetValue |
Returns:
Setter for property
showValueMarker
.
Default value is false
Parameters:
{boolean} | bShowValueMarker | new value for property showValueMarker |
- Since:
- 1.23
Returns:
Setter for property
size
.
Default value is Auto
Parameters:
Returns:
Setter for property
targetValue
.
Default value is empty/undefined
Parameters:
{float} | fTargetValue | new value for property targetValue |
Returns:
Setter for property
targetValueLabel
.
Default value is empty/undefined
Parameters:
{string} | sTargetValueLabel | new value for property targetValueLabel |
Returns:
Setter for property
width
.
Default value is empty/undefined
Parameters:
{string} | sWidth | new value for property width |
- Since:
- 1.22
Returns: