Class sap.viz.ui5.types.PieModule: sap/viz/ui5/types/Pie
Module sap.viz.ui5.types.Pie
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
- colorPalette : string[] (default: ???)
- isDonut : boolean (default: false)
- isGeoPie : boolean (default: false)
- valign : sap.viz.ui5.types.Pie_valign (default: top)
- drawingEffect : sap.viz.ui5.types.Pie_drawingEffect (default: normal)
- formatRules : object[]
- plotScale : float (default: 1)
- Aggregations
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 |
animation
. {sap.viz.ui5.types.Pie} | Reference to this in order to allow method chaining |
animation
. Settings for animations in the plot area
{sap.viz.ui5.types.Pie_animation} |
colorPalette
. Set the color palette for the sectors of the pie chart
Default value is ???
.
{string[]} | Value of property colorPalette |
drawingEffect
. Set the drawing effect of the pie
Default value is normal
.
{sap.viz.ui5.types.Pie_drawingEffect} | Value of property drawingEffect |
formatRules
. Rules to format data points, sample: [{condition: [{Key1:"Value1", Key2:"Value2"}], color:"#00ff00"}, {condition: [{Key3:"Value3"}], color:"#00ffff"}]. Each rule has two properties: "condition" and "color". The relation among the condition object in "condition" array is "OR", which means the data point that met any condition in the array will apply the "color". If multiple rules could apply on the same data point, the last rule would take effect.
{object[]} | Value of property formatRules |
isDonut
. Set the chart to display as a donut or a pie. If this value is set to 'true', the chart displays as a donut. If this value is set to 'false', the chart displays as a pie.
Default value is false
.
{boolean} | Value of property isDonut |
animation
. {sap.viz.ui5.types.Pie_animation} | oAnimation | The animation to set |
{sap.viz.ui5.types.Pie} | Reference to this in order to allow method chaining |
colorPalette
. Set the color palette for the sectors of the pie chart
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is ???
.
{string[]} | sColorPalette | New value for property colorPalette |
{sap.viz.ui5.types.Pie} | Reference to this in order to allow method chaining |
drawingEffect
. Set the drawing effect of the pie
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is normal
.
{sap.viz.ui5.types.Pie_drawingEffect} | sDrawingEffect | New value for property drawingEffect |
{sap.viz.ui5.types.Pie} | Reference to this in order to allow method chaining |
formatRules
. Rules to format data points, sample: [{condition: [{Key1:"Value1", Key2:"Value2"}], color:"#00ff00"}, {condition: [{Key3:"Value3"}], color:"#00ffff"}]. Each rule has two properties: "condition" and "color". The relation among the condition object in "condition" array is "OR", which means the data point that met any condition in the array will apply the "color". If multiple rules could apply on the same data point, the last rule would take effect.
When called with a value of null
or undefined
, the default value of the property will be restored.
{object[]} | sFormatRules | New value for property formatRules |
{sap.viz.ui5.types.Pie} | Reference to this in order to allow method chaining |
isDonut
. Set the chart to display as a donut or a pie. If this value is set to 'true', the chart displays as a donut. If this value is set to 'false', the chart displays as a pie.
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 |
{sap.viz.ui5.types.Pie} | Reference to this in order to allow method chaining |
toolTip
. - Deprecated:
- Since version 1.19. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Pie} | Reference to this in order to allow method chaining |
isGeoPie
. Set whether the chart displays as a geo pie chart. If this value is set to 'true', the chart displays as a geo pie chart. If this value is set to 'false', the chart does not display as a geo pie 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 isGeoPie |
plotScale
. Set the plot scale of the pie
Default value is 1
.
- 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.
{float} | Value of property plotScale |
toolTip
. Settings for tooltip related properties
- Deprecated:
- Since version 1.19. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Pie_tooltip} |
valign
. Set the vertical aligment of the chart
Default value is top
.
- 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.Pie_valign} | Value of property valign |
isGeoPie
. Set whether the chart displays as a geo pie chart. If this value is set to 'true', the chart displays as a geo pie chart. If this value is set to 'false', the chart does not display as a geo pie chart.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bIsGeoPie | New value for property isGeoPie |
- 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.Pie} | Reference to this in order to allow method chaining |
plotScale
. Set the plot scale of the pie
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 1
.
{float} | fPlotScale | New value for property plotScale |
- 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.Pie} | Reference to this in order to allow method chaining |
toolTip
. {sap.viz.ui5.types.Pie_tooltip} | oToolTip | The toolTip to set |
- Deprecated:
- Since version 1.19. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.Pie} | Reference to this in order to allow method chaining |
valign
. Set the vertical aligment of the chart
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is top
.
{sap.viz.ui5.types.Pie_valign} | sValign | New value for property valign |
- 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.Pie} | Reference to this in order to allow method chaining |