Class sap.viz.ui5.types.legend.CommonModule: sap/viz/ui5/types/legend/Common
Module sap.viz.ui5.types.legend.Common
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: true)
- formatString : string
- isHierarchical : boolean (default: false)
- isScrollable : boolean (default: false)
- position : sap.viz.ui5.types.legend.Common_position (default: right)
- type : sap.viz.ui5.types.legend.Common_type (default: ColorLegend)
- alignment : sap.viz.ui5.types.legend.Common_alignment (default: start)
- drawingEffect : sap.viz.ui5.types.legend.Common_drawingEffect (default: normal)
- Aggregations
- title : sap.viz.ui5.types.legend.Common_title
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 |
title
. {sap.viz.ui5.types.legend.Common} | Reference to this in order to allow method chaining |
drawingEffect
. Set the drawing effect for colors in the legend. If this value is set to 'glossy', colors are glossy. If this value is set to 'normal', colors are matte.
Default value is normal
.
{sap.viz.ui5.types.legend.Common_drawingEffect} | Value of property drawingEffect |
isHierarchical
. Set whether the legend is hierarchical. This is only supported if the legend is located to the right of the chart.
Default value is false
.
{boolean} | Value of property isHierarchical |
isScrollable
. Set whether the legend is scrollable. If this value is set to 'false', and there is not enough room to show the whole legend, an ellipsis (...) indicates the missing legend items.
Default value is false
.
{boolean} | Value of property isScrollable |
title
. Settings for the legend title
{sap.viz.ui5.types.legend.Common_title} |
visible
. Set the visibility of the legend
Default value is true
.
{boolean} | Value of property visible |
drawingEffect
. Set the drawing effect for colors in the legend. If this value is set to 'glossy', colors are glossy. If this value is set to 'normal', colors are matte.
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.legend.Common_drawingEffect} | sDrawingEffect | New value for property drawingEffect |
{sap.viz.ui5.types.legend.Common} | Reference to this in order to allow method chaining |
isHierarchical
. Set whether the legend is hierarchical. This is only supported if the legend is located to the right of the chart.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bIsHierarchical | New value for property isHierarchical |
{sap.viz.ui5.types.legend.Common} | Reference to this in order to allow method chaining |
isScrollable
. Set whether the legend is scrollable. If this value is set to 'false', and there is not enough room to show the whole legend, an ellipsis (...) indicates the missing legend items.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bIsScrollable | New value for property isScrollable |
{sap.viz.ui5.types.legend.Common} | Reference to this in order to allow method chaining |
title
. {sap.viz.ui5.types.legend.Common_title} | oTitle | The title to set |
{sap.viz.ui5.types.legend.Common} | Reference to this in order to allow method chaining |
visible
. Set the visibility of the legend
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bVisible | New value for property visible |
{sap.viz.ui5.types.legend.Common} | Reference to this in order to allow method chaining |
alignment
. Set the alignment of the legend
Default value is start
.
- 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.legend.Common_alignment} | Value of property alignment |
formatString
. Set the format string for the legend. The following characters are reserved as tokens for format code: MDYHSAmdyhsa#?%0@.
- 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 formatString |
position
. It is a deprecated property. Please use "legendGroup.layout.position" property to set legend position.
Default value is right
.
- 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.legend.Common_position} | Value of property position |
type
. Set legend type for Bubble charts. Non-bubble charts are not supported.
Default value is ColorLegend
.
- 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.legend.Common_type} | Value of property type |
alignment
. Set the alignment of the legend
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is start
.
{sap.viz.ui5.types.legend.Common_alignment} | sAlignment | New value for property alignment |
- 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.legend.Common} | Reference to this in order to allow method chaining |
formatString
. Set the format string for the legend. The following characters are reserved as tokens for format code: MDYHSAmdyhsa#?%0@.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sFormatString | New value for property formatString |
- 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.legend.Common} | Reference to this in order to allow method chaining |
position
. It is a deprecated property. Please use "legendGroup.layout.position" property to set legend position.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is right
.
{sap.viz.ui5.types.legend.Common_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.legend.Common} | Reference to this in order to allow method chaining |
type
. Set legend type for Bubble charts. Non-bubble charts are not supported.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is ColorLegend
.
{sap.viz.ui5.types.legend.Common_type} | 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.legend.Common} | Reference to this in order to allow method chaining |