Class sap.viz.ui5.types.DatalabelModule: sap/viz/ui5/types/Datalabel
Module sap.viz.ui5.types.Datalabel
Deprecated API:Since version 1.32.0. The chart controls in the sap.viz.ui5
package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility.
SAP strongly recommends that existing consumers of those controls migrate to the new VizFrame control to benefit from new charting enhancements and timely support.
Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration.
Experimental API:Since version 1.7.2. Charting API is not finished yet and might change completely.
Since: 1.7.2.
Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers.
sClassName
and enriches it with the information contained in oClassInfo
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
- Properties
- visible : boolean (default: false)
- hideWhenOverlap : boolean (default: true)
- isDonut : boolean (default: false)
- type : string (default: value)
- automaticInOutside : boolean (default: true)
- showZero : boolean (default: true)
- isGeoChart : boolean (default: false)
- isBubbleChart : boolean (default: false)
- isStackMode : boolean (default: false)
- isPercentMode : boolean (default: false)
- positionPreference : boolean (default: false)
- outsideVisible : boolean (default: true)
- outsidePosition : sap.viz.ui5.types.Datalabel_outsidePosition (default: up)
- paintingMode : sap.viz.ui5.types.Datalabel_paintingMode (default: rectCoordinate)
- position : sap.viz.ui5.types.Datalabel_position (default: inside)
- orientation : sap.viz.ui5.types.Datalabel_orientation (default: vertical)
- respectShapeWidth : boolean (default: false)
- formatString : any[]
In addition, all settings applicable to the base type sap.viz.ui5.core.BaseStructuredType can be used as well.
{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.32.0. The chart controls in the
sap.viz.ui5
package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility.SAP strongly recommends that existing consumers of those controls migrate to the new VizFrame control to benefit from new charting enhancements and timely support.
Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration.
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.viz.ui5.core.BaseStructuredType.extend.
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
formatString
. Set the format strings for the data labels. For dual axis charts, the first array is applied to the primary axis and the second array is applied to the second axis. If you enter fewer format strings into an array than there are measures in the respective axis, then the last format string is applied to all remaining measures. The following characters are reserved as tokens for format code: MDYHSAmdyhsa#?%0@. The following is a simple example: [["0.00%"],["0.00%"]].
{any[]} | Value of property formatString |
hideWhenOverlap
. Always show all data labels even they are overlapped
Default value is true
.
{boolean} | Value of property hideWhenOverlap |
visible
. Set whether the data labels are visible
Default value is false
.
{boolean} | Value of property visible |
formatString
. Set the format strings for the data labels. For dual axis charts, the first array is applied to the primary axis and the second array is applied to the second axis. If you enter fewer format strings into an array than there are measures in the respective axis, then the last format string is applied to all remaining measures. The following characters are reserved as tokens for format code: MDYHSAmdyhsa#?%0@. The following is a simple example: [["0.00%"],["0.00%"]].
When called with a value of null
or undefined
, the default value of the property will be restored.
{any[]} | sFormatString | New value for property formatString |
{sap.viz.ui5.types.Datalabel} | Reference to this in order to allow method chaining |
hideWhenOverlap
. Always show all data labels even they are overlapped
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bHideWhenOverlap | New value for property hideWhenOverlap |
{sap.viz.ui5.types.Datalabel} | Reference to this in order to allow method chaining |
visible
. Set whether the data labels are visible
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bVisible | New value for property visible |
{sap.viz.ui5.types.Datalabel} | Reference to this in order to allow method chaining |
automaticInOutside
. If set to 'true', the data labels will be automatically placed outside when the data label position property is inside, and vice versa
Default value is true
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{boolean} | Value of property automaticInOutside |
isBubbleChart
. Set whether the chart is a bubble chart
Default value is false
.
- Deprecated:
- Since version 1.22. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{boolean} | Value of property isBubbleChart |
isDonut
. Set whether the chart is a donut chart. Use only for donut charts.
Default value is false
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{boolean} | Value of property isDonut |
isGeoChart
. Set whether the chart is a geo chart
Default value is false
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{boolean} | Value of property isGeoChart |
isPercentMode
. Set whether the chart is a percent chart. Set for percent chart only.
Default value is false
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{boolean} | Value of property isPercentMode |
isStackMode
. Set whether the chart is a stack chart. Set for stack chart only.
Default value is false
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{boolean} | Value of property isStackMode |
orientation
. Set orientation of data labels
Default value is vertical
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel_orientation} | Value of property orientation |
outsidePosition
. If set to 'true', the data label is positioned above the element when it is outside
Default value is up
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel_outsidePosition} | Value of property outsidePosition |
outsideVisible
. If set to 'true', the data label is visible when it is outside
Default value is true
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{boolean} | Value of property outsideVisible |
paintingMode
. Set painting mode of data labels
Default value is rectCoordinate
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel_paintingMode} | Value of property paintingMode |
position
. Set position of data labels
Default value is inside
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel_position} | Value of property position |
positionPreference
. If set to 'true', the data label position is defined by the property 'outsidePosition', regardless of whether the data label value is negative
Default value is false
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{boolean} | Value of property positionPreference |
respectShapeWidth
. If set to 'true', the data label is automatically hidden when bubble width isn't enough to show the whole label in single bubble chart.
Default value is false
.
- Deprecated:
- Since version 1.20. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{boolean} | Value of property respectShapeWidth |
showZero
. If set to 'true', the value zero is shown in the data labels
Default value is true
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{boolean} | Value of property showZero |
type
. Set the type of label
Default value is value
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{string} | Value of property type |
automaticInOutside
. If set to 'true', the data labels will be automatically placed outside when the data label position property is inside, and vice versa
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bAutomaticInOutside | New value for property automaticInOutside |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel} | Reference to this in order to allow method chaining |
isBubbleChart
. Set whether the chart is a bubble chart
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bIsBubbleChart | New value for property isBubbleChart |
- Deprecated:
- Since version 1.22. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel} | Reference to this in order to allow method chaining |
isDonut
. Set whether the chart is a donut chart. Use only for donut charts.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bIsDonut | New value for property isDonut |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel} | Reference to this in order to allow method chaining |
isGeoChart
. Set whether the chart is a geo chart
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bIsGeoChart | New value for property isGeoChart |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel} | Reference to this in order to allow method chaining |
isPercentMode
. Set whether the chart is a percent chart. Set for percent chart only.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bIsPercentMode | New value for property isPercentMode |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel} | Reference to this in order to allow method chaining |
isStackMode
. Set whether the chart is a stack chart. Set for stack chart only.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bIsStackMode | New value for property isStackMode |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel} | Reference to this in order to allow method chaining |
orientation
. Set orientation of data labels
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is vertical
.
{sap.viz.ui5.types.Datalabel_orientation} | sOrientation | New value for property orientation |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel} | Reference to this in order to allow method chaining |
outsidePosition
. If set to 'true', the data label is positioned above the element when it is outside
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is up
.
{sap.viz.ui5.types.Datalabel_outsidePosition} | sOutsidePosition | New value for property outsidePosition |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel} | Reference to this in order to allow method chaining |
outsideVisible
. If set to 'true', the data label is visible when it is outside
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bOutsideVisible | New value for property outsideVisible |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel} | Reference to this in order to allow method chaining |
paintingMode
. Set painting mode of data labels
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is rectCoordinate
.
{sap.viz.ui5.types.Datalabel_paintingMode} | sPaintingMode | New value for property paintingMode |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel} | Reference to this in order to allow method chaining |
position
. Set position of data labels
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is inside
.
{sap.viz.ui5.types.Datalabel_position} | sPosition | New value for property position |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel} | Reference to this in order to allow method chaining |
positionPreference
. If set to 'true', the data label position is defined by the property 'outsidePosition', regardless of whether the data label value is negative
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bPositionPreference | New value for property positionPreference |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel} | Reference to this in order to allow method chaining |
respectShapeWidth
. If set to 'true', the data label is automatically hidden when bubble width isn't enough to show the whole label in single bubble chart.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bRespectShapeWidth | New value for property respectShapeWidth |
- Deprecated:
- Since version 1.20. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel} | Reference to this in order to allow method chaining |
showZero
. If set to 'true', the value zero is shown in the data labels
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bShowZero | New value for property showZero |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel} | Reference to this in order to allow method chaining |
type
. Set the type of label
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is value
.
{string} | sType | New value for property type |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Datalabel} | Reference to this in order to allow method chaining |