This chart shows the part comparative to total.
Deprecated API:Since version 1.34. Deprecated. sap.suite.ui.microchart.HarveyBallMicroChart should be used.
Event Summary
press(oControlEvent)The event is fired when the user chooses the control. Method Summary
sap.suite.ui.commons.HarveyBallMicroChart.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.suite.ui.commons.HarveyBallMicroChart with name sClassName and enriches it with the information contained in oClassInfo. addItem(oItem)Adds some item oItem to the aggregation named items. attachPress(oData?, fnFunction, oListener?)Attach event handler fnFunction to the 'press' event of this sap.suite.ui.commons.HarveyBallMicroChart. destroyItems()Destroys all the items in the aggregation named items. detachPress(fnFunction, oListener)Detach event handler fnFunction from the 'press' event of this sap.suite.ui.commons.HarveyBallMicroChart. firePress(mArguments?)Fire event press to attached listeners. indexOfItem(oItem)Checks for the provided sap.suite.ui.commons.HarveyBallMicroChartItem in the aggregation named items and returns its index if found or -1 otherwise. insertItem(oItem, iIndex)Inserts a item into the aggregation named items. removeAllItems()Removes all the controls in the aggregation named items. removeItem(vItem)Removes an item from the aggregation named items. setSize(oSize)Setter for property size. setTotal(fTotal)Setter for property total. setWidth(sWidth)Setter for property width. addStyleClass, 
allowTextSelection, 
attachBrowserEvent, 
attachValidateFieldGroup, 
checkFieldGroupIds, 
clone, 
detachBrowserEvent, 
detachValidateFieldGroup, 
fireValidateFieldGroup, 
getAccessibilityInfo, 
getBusy, 
getBusyIndicatorDelay, 
getControlsByFieldGroupId, 
getFieldGroupIds, 
getIdForLabel, 
getRenderer, 
getVisible, 
hasStyleClass, 
invalidate, 
isBusy, 
onAfterRendering, 
onBeforeRendering, 
placeAt, 
removeStyleClass, 
rerender, 
setBusy, 
setBusyIndicatorDelay, 
setFieldGroupIds, 
setVisible, 
toggleStyleClass, 
triggerValidateFieldGroup $, 
addCustomData, 
addDependent, 
addEventDelegate, 
applyFocusInfo, 
bindElement, 
data, 
destroy, 
destroyCustomData, 
destroyDependents, 
destroyLayoutData, 
destroyTooltip, 
enhanceAccessibilityState, 
exit, 
findElements, 
fireEvent, 
focus, 
getCustomData, 
getDependents, 
getDomRef, 
getElementBinding, 
getFocusDomRef, 
getFocusInfo, 
getInterface, 
getLayoutData, 
getMetadata, 
getTooltip, 
getTooltip_AsString, 
getTooltip_Text, 
indexOfCustomData, 
indexOfDependent, 
init, 
insertCustomData, 
insertDependent, 
prop, 
removeAllCustomData, 
removeAllDependents, 
removeCustomData, 
removeDependent, 
removeEventDelegate, 
setLayoutData, 
setTooltip, 
toString, 
unbindElement addAggregation, 
addAssociation, 
applySettings, 
attachFormatError, 
attachModelContextChange, 
attachParseError, 
attachValidationError, 
attachValidationSuccess, 
bindAggregation, 
bindContext, 
bindObject, 
bindProperty, 
destroyAggregation, 
detachFormatError, 
detachModelContextChange, 
detachParseError, 
detachValidationError, 
detachValidationSuccess, 
findAggregatedObjects, 
fireFormatError, 
fireModelContextChange, 
fireParseError, 
fireValidationError, 
fireValidationSuccess, 
getAggregation, 
getAssociation, 
getBinding, 
getBindingContext, 
getBindingInfo, 
getBindingPath, 
getEventingParent, 
getId, 
getModel, 
getObjectBinding, 
getOriginInfo, 
getParent, 
getProperty, 
hasModel, 
indexOfAggregation, 
insertAggregation, 
isBound, 
isInvalidateSuppressed, 
isTreeBinding, 
propagateMessages, 
removeAggregation, 
removeAllAggregation, 
removeAllAssociation, 
removeAssociation, 
setAggregation, 
setAssociation, 
setBindingContext, 
setModel, 
setProperty, 
unbindAggregation, 
unbindContext, 
unbindObject, 
unbindProperty, 
validateAggregation, 
validateProperty  Constructor Detail 
 new sap.suite.ui.commons.HarveyBallMicroChart(sId?, mSettings?) 
 Constructor for a new HarveyBallMicroChart. 
 Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. 
 If the name of a setting is ambiguous (e.g. a property has the same name as an event), then the framework assumes property, aggregation, association, event in that order. To override this automatic resolution, one of the prefixes "aggregation:", "association:" or "event:" can be added to the name of the setting (such a prefixed name must be enclosed in single or double quotes). 
 The supported settings are: 
- Properties 
 - Aggregations 
- items : sap.suite.ui.commons.HarveyBallMicroChartItem[]
 
 - Associations 
 - Events 
- press : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
 
 
Parameters:
| {string} | sId? |  id for the new control, generated automatically if no id is given  | 
| {object} | mSettings? |  initial settings for the new control  | 
- Deprecated:
 -  Since version 1.34. Deprecated. sap.suite.ui.microchart.HarveyBallMicroChart should be used. 
 
   Event Detail 
 press(oControlEvent)
 The event is fired when the user chooses the control. 
Parameters:
 Method Detail 
 sap.suite.ui.commons.HarveyBallMicroChart.extend(sClassName, oClassInfo?, FNMetaImpl?): function
 Creates a new subclass of class sap.suite.ui.commons.HarveyBallMicroChart 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.HarveyBallMicroChart. 
Returns:
 Adds some item oItem to the aggregation named items. 
Parameters:
Returns:
 Attach event handler 
fnFunction to the 'press' event of this 
sap.suite.ui.commons.HarveyBallMicroChart.
. When called, the context of the event handler (its 
this) will be bound to 
oListener if specified otherwise to this sap.suite.ui.commons.HarveyBallMicroChart.
 itself.  The event is fired when the user chooses the control. 
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.HarveyBallMicroChart.  itself.  | 
Returns:
 Destroys all the items in the aggregation named items. 
Returns:
 Detach event handler 
fnFunction from the 'press' event of this 
sap.suite.ui.commons.HarveyBallMicroChart. 
 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:
 getColorPalette(): string[]
 Getter for property 
colorPalette. The color palette for the chart. If this property is set, semantic colors defined in HarveyBallMicroChart are ignored. Colors from the palette are assigned to each slice consequentially. When all the palette colors are used, assignment of the colors begins from the first palette color. 
 Default value is []
Returns:
| {string[]} |  the value of property colorPalette | 
 getFormattedLabel(): boolean
 Getter for property 
formattedLabel. If set to true, the totalLabel parameter is considered as the combination of the total value and its scaling factor. The default value is false. It means that the total value and the scaling factor are defined separately by the total and the totalScale properties accordingly. 
 Default value is false
Returns:
| {boolean} |  the value of property formattedLabel | 
 Getter for aggregation items.
 The pie chart slices. 
Returns:
 getShowFractions(): boolean
 Getter for property 
showFractions. If it is set to true, the fraction values are displayed next to the chart. The default setting is true. 
 Default value is true
Returns:
| {boolean} |  the value of property showFractions | 
 getShowTotal(): boolean
 Getter for property 
showTotal. If it is set to true, the total value is displayed next to the chart. The default setting is true. 
 Default value is true
Returns:
| {boolean} |  the value of property showTotal | 
 Getter for property 
size. The size of the chart. If it is not set, the default size is applied based on the device type. 
 Default value is Auto
Returns:
 getTotal(): float
 Getter for property 
total. The total value. This is taken as 360 degrees value on the chart. 
 Default value is 0
Returns:
| {float} |  the value of property total | 
 getTotalLabel(): string
 Getter for property 
totalLabel. The total label. If specified, it is displayed instead of the total value. 
 Default value is empty/undefined
Returns:
| {string} |  the value of property totalLabel | 
 getTotalScale(): string
 Getter for property 
totalScale. The scaling factor that is displayed next to the total value. 
 Default value is empty/undefined
Returns:
| {string} |  the value of property totalScale | 
 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
Returns:
 indexOfItem(oItem): int
 Checks for the provided sap.suite.ui.commons.HarveyBallMicroChartItem in the aggregation named items 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 item into the aggregation named items. 
Parameters:
| {sap.suite.ui.commons.HarveyBallMicroChartItem} | oItem |  the item to insert; if empty, nothing is inserted  | 
| {int} | iIndex |  the 0-based index the item should be inserted at; for a negative value of iIndex, the item is inserted at position 0; for a value greater than the current size of the aggregation, the item is inserted at the last position  | 
Returns:
 Removes all the controls in the aggregation named items.
 Additionally unregisters them from the hosting UIArea. 
Returns:
 Removes an item from the aggregation named items. 
Parameters:
Returns:
 Setter for property 
colorPalette. 
 Default value is []
Parameters:
| {string[]} | aColorPalette |  new value for property colorPalette | 
Returns:
 Setter for property 
formattedLabel. 
 Default value is false
Parameters:
| {boolean} | bFormattedLabel |  new value for property formattedLabel | 
Returns:
 Setter for property 
showFractions. 
 Default value is true
Parameters:
| {boolean} | bShowFractions |  new value for property showFractions | 
Returns:
 Setter for property 
showTotal. 
 Default value is true
Parameters:
| {boolean} | bShowTotal |  new value for property showTotal | 
Returns:
 Setter for property 
size. 
 Default value is Auto
Parameters:
Returns:
 Setter for property 
total. 
 Default value is 0
Parameters:
| {float} | fTotal |  new value for property total | 
Returns:
 Setter for property 
totalLabel. 
 Default value is empty/undefined
Parameters:
| {string} | sTotalLabel |  new value for property totalLabel | 
Returns:
 Setter for property 
totalScale. 
 Default value is empty/undefined
Parameters:
| {string} | sTotalScale |  new value for property totalScale | 
Returns:
 Setter for property 
width. 
 Default value is empty/undefined
Parameters:
Returns: