Class sap.chart.data.MeasureModule: sap/chart/data/Measure
Definition of a single measure 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
- unitBinding : string
- valueFormat : string
- role : string (default: axis1)
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 |
label
. Label for the Measure, 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 raw measure value.
{string} | Value of property name |
role
. How values of measure will be rendered in the chart. Possible role values are "axis1", "axis2", "axis3", and "axis4". The default is "axis1". They correspond to the well-known concepts of axis identifiers in the Cartesian coordinate system, e.g. a Y-axis in a bar/column/line chart, an X- and a Y-axis in a scatter chart, or two Y-axes in bar charts, and an optional third axis for the weight/size/intensity/temperature of a data point.
Default value is axis1
.
{string} | Value of property role |
unitBinding
. Unit for the measure, a pointer using the binding syntax to some field containing the unit. Value of the given field from the same data record will be displayed after formatted measure value in data label, tooltip and chart popover. NOTE: If the unit field is not set as visible dimension in chart, or more than one unit value exists for any visible dimension value combination, they will be rendered in the chart resulting different chart layout.
{string} | Value of property unitBinding |
label
. Label for the Measure, 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.Measure} | Reference to this in order to allow method chaining |
name
. Property in the "data" model holding the raw measure value.
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.Measure} | Reference to this in order to allow method chaining |
role
. How values of measure will be rendered in the chart. Possible role values are "axis1", "axis2", "axis3", and "axis4". The default is "axis1". They correspond to the well-known concepts of axis identifiers in the Cartesian coordinate system, e.g. a Y-axis in a bar/column/line chart, an X- and a Y-axis in a scatter chart, or two Y-axes in bar charts, and an optional third axis for the weight/size/intensity/temperature of a data point.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is axis1
.
{string} | sRole | New value for property role |
{sap.chart.data.Measure} | Reference to this in order to allow method chaining |
unitBinding
. Unit for the measure, a pointer using the binding syntax to some field containing the unit. Value of the given field from the same data record will be displayed after formatted measure value in data label, tooltip and chart popover. NOTE: If the unit field is not set as visible dimension in chart, or more than one unit value exists for any visible dimension value combination, they will be rendered in the chart resulting different chart layout.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sUnitBinding | New value for property unitBinding |
{sap.chart.data.Measure} | Reference to this in order to allow method chaining |
valueFormat
. A (core UI5) format pattern to be used by the formatter to format the measure value.
- Deprecated:
- Please use sap.chart.Chart#setVizProperties to set related formatStrings instead.
{string} | Value of property valueFormat |
valueFormat
. A (core UI5) format pattern to be used by the formatter to format the measure value.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sValueFormat | New value for property valueFormat |
- Deprecated:
- Please use sap.chart.Chart#setVizProperties to set related formatStrings instead.
{sap.chart.data.Measure} | Reference to this in order to allow method chaining |