Class sap.ui.comp.smartmicrochart.SmartAreaMicroChartModule: sap/ui/comp/smartmicrochart/SmartAreaMicroChart

extends Control

The SmartAreaMicroChart control creates a AreaMicroChart based on OData metadata and the configuration specified. The entitySet attribute must be specified to use the control. This attribute is used to fetch fields from OData metadata, from which Micro Area Chart UI will be generated; it can also be used to fetch the actual chart data.
Note:
Most of the attributes/properties are not dynamic and cannot be changed once the control has been initialised.


Since: 1.38.
Constructor Summary
new sap.ui.comp.smartmicrochart.SmartAreaMicroChart(sId?, mSettings?)Constructor for a new sap.ui.comp.smartmicrochart/SmartAreaMicroChart.
Event Summary
initialize(oControlEvent)Event fired once the control has been initialized.
Events borrowed from class sap.ui.core.Control
Method Summary
sap.ui.comp.smartmicrochart.SmartAreaMicroChart.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.comp.smartmicrochart.SmartAreaMicroChart with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.comp.smartmicrochart.SmartAreaMicroChart.getMetadata()Returns a metadata object for class sap.ui.comp.smartmicrochart.SmartAreaMicroChart.
attachInitialize(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the initialize event of this sap.ui.comp.smartmicrochart.SmartAreaMicroChart.
detachInitialize(fnFunction, oListener)Detaches event handler fnFunction from the initialize event of this sap.ui.comp.smartmicrochart.SmartAreaMicroChart.
fireInitialize(mArguments?)Fires event initialize to attached listeners.
getChartBindingPath()Gets current value of property chartBindingPath.
getChartDescription()ID of the element which is the current target of the association chartDescription, or null.
getChartTitle()ID of the element which is the current target of the association chartTitle, or null.
getChartType()Gets current value of property chartType.
getEnableAutoBinding()Gets current value of property enableAutoBinding.
getEntitySet()Gets current value of property entitySet.
getHeight()Gets current value of property height.
getIsResponsive()Gets current value of property isResponsive.
getShowLabel()Gets current value of property showLabel.
getUnitOfMeasure()ID of the element which is the current target of the association unitOfMeasure, or null.
getWidth()Gets current value of property width.
setChartBindingPath(sChartBindingPath)Sets a new value for property chartBindingPath.
setChartDescription(oChartDescription)Sets the associated chartDescription.
setChartTitle(oChartTitle)Sets the associated chartTitle.
setEntitySet(sEntitySet)Sets a new value for property entitySet.
setHeight(sHeight)Sets a new value for property height.
setIsResponsive(bIsResponsive)Sets a new value for property isResponsive.
setShowLabel(bShowLabel)Sets a new value for property showLabel.
setUnitOfMeasure(oUnitOfMeasure)Sets the associated unitOfMeasure.
setWidth(sWidth)Sets a new value for property width.
Constructor Detail
new sap.ui.comp.smartmicrochart.SmartAreaMicroChart(sId?, mSettings?)
Constructor for a new sap.ui.comp.smartmicrochart/SmartAreaMicroChart.

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:

In addition, all settings applicable to the base type sap.ui.core.Control can be used as well.

Parameters:
{string}sId? id for the new control, generated automatically if no id is given
{object}mSettings? initial settings for the new control
Event Detail
initialize(oControlEvent)
Event fired once the control has been initialized.
Parameters:
{sap.ui.base.Event}oControlEvent
{sap.ui.base.EventProvider}oControlEvent.getSource
{object}oControlEvent.getParameters
Method Detail
sap.ui.comp.smartmicrochart.SmartAreaMicroChart.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.comp.smartmicrochart.SmartAreaMicroChart with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.core.Control.extend.

Parameters:
{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
Returns:
{function} Created class / constructor function
sap.ui.comp.smartmicrochart.SmartAreaMicroChart.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.comp.smartmicrochart.SmartAreaMicroChart.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
attachInitialize(oData?, fnFunction, oListener?): sap.ui.comp.smartmicrochart.SmartAreaMicroChart
Attaches event handler fnFunction to the initialize event of this sap.ui.comp.smartmicrochart.SmartAreaMicroChart.

When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.ui.comp.smartmicrochart.SmartAreaMicroChart itself.

Event fired once the control has been initialized.

Parameters:
{object}oData? An application-specific payload object that will be passed to the event handler along with the event object when firing the event
{function}fnFunction The function to be called when the event occurs
{object}oListener? Context object to call the event handler with. Defaults to this sap.ui.comp.smartmicrochart.SmartAreaMicroChart itself
Returns:
{sap.ui.comp.smartmicrochart.SmartAreaMicroChart} Reference to this in order to allow method chaining
detachInitialize(fnFunction, oListener): sap.ui.comp.smartmicrochart.SmartAreaMicroChart
Detaches event handler fnFunction from the initialize event of this sap.ui.comp.smartmicrochart.SmartAreaMicroChart.

The passed function and listener object must match the ones used for event registration.

Parameters:
{function}fnFunction The function to be called, when the event occurs
{object}oListener Context object on which the given function had to be called
Returns:
{sap.ui.comp.smartmicrochart.SmartAreaMicroChart} Reference to this in order to allow method chaining
Fires event initialize to attached listeners.
Parameters:
{Map}mArguments? The arguments to pass along with the event
Returns:
{sap.ui.comp.smartmicrochart.SmartAreaMicroChart} Reference to this in order to allow method chaining
getChartBindingPath(): string
Gets current value of property chartBindingPath.

This attribute can be used to specify the relative path ( without '/') to an entitySet ( not a single entity) that is used during the binding of the chart. It can be e.g. a navigation property which will be added to the context path. If not specified, the entitySet attribute is used instead.

Returns:
{string} Value of property chartBindingPath
getChartDescription(): sap.m.Label
ID of the element which is the current target of the association chartDescription, or null.
Returns:
{sap.m.Label}
getChartTitle(): sap.m.Label
ID of the element which is the current target of the association chartTitle, or null.
Returns:
{sap.m.Label}
getChartType(): string
Gets current value of property chartType.

Specifies the type of Chart.

Returns:
{string} Value of property chartType
getEnableAutoBinding(): boolean
Gets current value of property enableAutoBinding.

Only true value is supported: the chart will be bound to the chartBindingPath or to the entitySet

Default value is true.

Returns:
{boolean} Value of property enableAutoBinding
getEntitySet(): string
Gets current value of property entitySet.

The entity set name from where the data is fetched and the internal AreaMicroChart representation is created. Note that this is not a dynamic UI5 property

Returns:
{string} Value of property entitySet
getHeight(): sap.ui.core.CSSSize
Gets current value of property height.

Defines the height.

Default value is 74px.

Returns:
{sap.ui.core.CSSSize} Value of property height
getIsResponsive(): boolean
Gets current value of property isResponsive.

If this set to true, width and height of the control are determined by the width and height of the container in which the control is placed. Size and Width properties are ignored in such case.

Default value is false.

Returns:
{boolean} Value of property isResponsive
getShowLabel(): boolean
Gets current value of property showLabel.

Determines if the target value and actual value are displayed or not

Default value is true.

Returns:
{boolean} Value of property showLabel
getUnitOfMeasure(): sap.m.Label
ID of the element which is the current target of the association unitOfMeasure, or null.
Since:
1.38
Returns:
{sap.m.Label}
getWidth(): sap.ui.core.CSSSize
Gets current value of property width.

Defines the width.

Default value is 164px.

Returns:
{sap.ui.core.CSSSize} Value of property width
setChartBindingPath(sChartBindingPath): sap.ui.comp.smartmicrochart.SmartAreaMicroChart
Sets a new value for property chartBindingPath.

This attribute can be used to specify the relative path ( without '/') to an entitySet ( not a single entity) that is used during the binding of the chart. It can be e.g. a navigation property which will be added to the context path. If not specified, the entitySet attribute is used instead.

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{string}sChartBindingPath New value for property chartBindingPath
Returns:
{sap.ui.comp.smartmicrochart.SmartAreaMicroChart} Reference to this in order to allow method chaining
setChartDescription(oChartDescription): sap.ui.comp.smartmicrochart.SmartAreaMicroChart
Sets the associated chartDescription.
Parameters:
{sap.m.Label}oChartDescription Id of an element which becomes the new target of this chartDescription association; alternatively, an element instance may be given
Returns:
{sap.ui.comp.smartmicrochart.SmartAreaMicroChart} Reference to this in order to allow method chaining
Sets the associated chartTitle.
Parameters:
{sap.m.Label}oChartTitle Id of an element which becomes the new target of this chartTitle association; alternatively, an element instance may be given
Returns:
{sap.ui.comp.smartmicrochart.SmartAreaMicroChart} Reference to this in order to allow method chaining
Sets a new value for property entitySet.

The entity set name from where the data is fetched and the internal AreaMicroChart representation is created. Note that this is not a dynamic UI5 property

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{string}sEntitySet New value for property entitySet
Returns:
{sap.ui.comp.smartmicrochart.SmartAreaMicroChart} Reference to this in order to allow method chaining
Sets a new value for property height.

Defines the height.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is 74px.

Parameters:
{sap.ui.core.CSSSize}sHeight New value for property height
Returns:
{sap.ui.comp.smartmicrochart.SmartAreaMicroChart} Reference to this in order to allow method chaining
setIsResponsive(bIsResponsive): sap.ui.comp.smartmicrochart.SmartAreaMicroChart
Sets a new value for property isResponsive.

If this set to true, width and height of the control are determined by the width and height of the container in which the control is placed. Size and Width properties are ignored in such case.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is false.

Parameters:
{boolean}bIsResponsive New value for property isResponsive
Returns:
{sap.ui.comp.smartmicrochart.SmartAreaMicroChart} Reference to this in order to allow method chaining
Sets a new value for property showLabel.

Determines if the target value and actual value are displayed or not

When called with a value of null or undefined, the default value of the property will be restored.

Default value is true.

Parameters:
{boolean}bShowLabel New value for property showLabel
Returns:
{sap.ui.comp.smartmicrochart.SmartAreaMicroChart} Reference to this in order to allow method chaining
setUnitOfMeasure(oUnitOfMeasure): sap.ui.comp.smartmicrochart.SmartAreaMicroChart
Sets the associated unitOfMeasure.
Parameters:
{sap.m.Label}oUnitOfMeasure Id of an element which becomes the new target of this unitOfMeasure association; alternatively, an element instance may be given
Since:
1.38
Returns:
{sap.ui.comp.smartmicrochart.SmartAreaMicroChart} Reference to this in order to allow method chaining
Sets a new value for property width.

Defines the width.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is 164px.

Parameters:
{sap.ui.core.CSSSize}sWidth New value for property width
Returns:
{sap.ui.comp.smartmicrochart.SmartAreaMicroChart} Reference to this in order to allow method chaining