Class sap.chart.data.DimensionModule: sap/chart/data/Dimension
Definition of a single dimension in a chart
Since: 1.32.0.
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
- name : string
- label : string
- textFormatter : function
- textProperty : string
- displayText : boolean (default: true)
- role : string (default: category)
In addition, all settings applicable to the base type sap.ui.core.Element 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 |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.core.Element.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 |
displayText
. Whether a text is displayed. If the "textProperty" property has not been specified, it will be derived from the metadata.
Default value is true
.
{boolean} | Value of property displayText |
label
. Label for the Dimension, either as a string literal or by a pointer using the binding syntax to some property containing the label.
{string} | Value of property label |
name
. Property in the "data" model holding the (always unique) Dimension key.
{string} | Value of property name |
role
. How the Dimension will influence the chart layout. Possible values are "category" or "series". The default is "category". NOTE: Has no effect if the Dimension is used as inResultDimensions by Chart
Default value is category
.
{string} | Value of property role |
textFormatter
. Function returning a formatted text for a Dimension key value that will be used for axis labelling. If specified, this property takes precedence over the "textProperty" property of the Dimension. Dimension key value and the corresponding text will be passed to the supplied function as parameters.
{function} | Value of property textFormatter |
textProperty
. Text for a Dimension key value, typically by a pointer using the binding syntax to some property containing the text.
{string} | Value of property textProperty |
displayText
. Whether a text is displayed. If the "textProperty" property has not been specified, it will be derived from the metadata.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bDisplayText | New value for property displayText |
{sap.chart.data.Dimension} | Reference to this in order to allow method chaining |
label
. Label for the Dimension, either as a string literal or by a pointer using the binding syntax to some property containing the label.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sLabel | New value for property label |
{sap.chart.data.Dimension} | Reference to this in order to allow method chaining |
name
. Property in the "data" model holding the (always unique) Dimension key.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sName | New value for property name |
{sap.chart.data.Dimension} | Reference to this in order to allow method chaining |
role
. How the Dimension will influence the chart layout. Possible values are "category" or "series". The default is "category". NOTE: Has no effect if the Dimension is used as inResultDimensions by Chart
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is category
.
{string} | sRole | New value for property role |
{sap.chart.data.Dimension} | Reference to this in order to allow method chaining |
textFormatter
. Function returning a formatted text for a Dimension key value that will be used for axis labelling. If specified, this property takes precedence over the "textProperty" property of the Dimension. Dimension key value and the corresponding text will be passed to the supplied function as parameters.
When called with a value of null
or undefined
, the default value of the property will be restored.
{function} | fnTextFormatter | New value for property textFormatter |
{sap.chart.data.Dimension} | Reference to this in order to allow method chaining |
textProperty
. Text for a Dimension key value, typically by a pointer using the binding syntax to some property containing the text.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sTextProperty | New value for property textProperty |
{sap.chart.data.Dimension} | Reference to this in order to allow method chaining |