Class sap.viz.ui5.types.Axis_labelModule: sap/viz/ui5/types/Axis_label
Settings for the labels on this axis
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)
- numberFormat : string (default: )
- formatString : any
- unitFormatType : sap.viz.ui5.types.Axis_label_unitFormatType (default: FinancialUnits)
- hideSubLevels : boolean (default: false)
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 labels on the value axis. If a single format string is entered, it is applied to all measures. A two-dimensional array of format strings can be entered for scatter matrix charts and multiple charts with measureNamesDimension, to apply different formats to each sub-chart. For all other chart types, the first value of the first dimension of a two-dimensional array is used as a global format string. The following characters are reserved as tokens for format code: MDYHSAmdyhsa#?%0@. The letter "u" is used at the end of a format string to format values in SI units. If the letter "u" is added to a value between 1e12 and 1e-3 before SI units are applied, the value is formatted in exponential style. The remaining syntax matches Excel format strings. The following is a simple example of a two-dimensional array for a chart with two measures: [["#,##0.00 DM;-#,##.00 DM","#,##.00;-#,##.00"]].
{any} | Value of property formatString |
hideSubLevels
. Set the visibility of the sub levels of labels on this axis
Default value is false
.
{boolean} | Value of property hideSubLevels |
unitFormatType
. Set the unit format type. If set MetricUnits, unit K,M,G,T will be applied, eg, 5000 will display as 5K, 5000000 will display as 5M, 5000000000 will display as 5G and so on. If set FinancialUnits, unit K,M,B,T will be applied. 5000000000 will display as 5B.
Default value is FinancialUnits
.
{sap.viz.ui5.types.Axis_label_unitFormatType} | Value of property unitFormatType |
visible
. Set the visibility of the labels on this axis
Default value is true
.
{boolean} | Value of property visible |
formatString
. Set the format strings for labels on the value axis. If a single format string is entered, it is applied to all measures. A two-dimensional array of format strings can be entered for scatter matrix charts and multiple charts with measureNamesDimension, to apply different formats to each sub-chart. For all other chart types, the first value of the first dimension of a two-dimensional array is used as a global format string. The following characters are reserved as tokens for format code: MDYHSAmdyhsa#?%0@. The letter "u" is used at the end of a format string to format values in SI units. If the letter "u" is added to a value between 1e12 and 1e-3 before SI units are applied, the value is formatted in exponential style. The remaining syntax matches Excel format strings. The following is a simple example of a two-dimensional array for a chart with two measures: [["#,##0.00 DM;-#,##.00 DM","#,##.00;-#,##.00"]].
When called with a value of null
or undefined
, the default value of the property will be restored.
{any} | oFormatString | New value for property formatString |
{sap.viz.ui5.types.Axis_label} | Reference to this in order to allow method chaining |
hideSubLevels
. Set the visibility of the sub levels of labels on this axis
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bHideSubLevels | New value for property hideSubLevels |
{sap.viz.ui5.types.Axis_label} | Reference to this in order to allow method chaining |
unitFormatType
. Set the unit format type. If set MetricUnits, unit K,M,G,T will be applied, eg, 5000 will display as 5K, 5000000 will display as 5M, 5000000000 will display as 5G and so on. If set FinancialUnits, unit K,M,B,T will be applied. 5000000000 will display as 5B.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is FinancialUnits
.
{sap.viz.ui5.types.Axis_label_unitFormatType} | sUnitFormatType | New value for property unitFormatType |
{sap.viz.ui5.types.Axis_label} | Reference to this in order to allow method chaining |
visible
. Set the visibility of the labels on this axis
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.Axis_label} | Reference to this in order to allow method chaining |
numberFormat
. Set the number format for the value axis
Default value is .
- 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 numberFormat |
numberFormat
. Set the number format for the value axis
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is .
{string} | sNumberFormat | New value for property numberFormat |
- 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.Axis_label} | Reference to this in order to allow method chaining |