The SmartComparisonMicroChart control creates a ComparisonMicroChart based on OData metadata and the configuration specified. The entitySet
property is required to use the control. The entity set you specify in this property is used to feetch OData metadata and to generate the micro chart's UI. This property can also be used to fetch actual data.
Notes:
SmartMicroChart
.Constructor for a new SmartComparisonMicroChart.
Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.
This class does not have its own settings, but all settings applicable to the base type sap.ui.comp.smartmicrochart.SmartMicroChartBase can be used.
new sap.ui.comp.smartmicrochart.SmartComparisonMicroChart(sId?, mSettings?)
Param | Type | Default Value | Description |
---|---|---|---|
sId? | string | id for the new control, generated automatically if no id is given |
|
mSettings? | object | initial settings for the new control |
Name | Type | Default Value | Description |
---|---|---|---|
chartBindingPath | string | This property can be used to specify a relative path (without '/') to an entity set (not a single entity) that is used during the binding of the chart. |
|
chartType | string | Specifies the type of chart. Note that this property is read-only. Visibility: public |
|
entitySet | string | The OData entity set bound to the smart line micro chart. |
|
height | sap.ui.core.CSSSize | The height of the chart. Overrides the height specified in the |
|
isResponsive | boolean | false | 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 or by the width and height property. Visibility: public |
showLabel | boolean | true | Determines if any label is shown or not. Visibility: public |
size | sap.m.Size | Auto | The size of the microchart. If not set, the default size is applied based on the size of the device tile. Responsive size takes width and height of the parent container where the micro chart is included. |
width | sap.ui.core.CSSSize | The width of the chart. Overrides the width specified in the |
Method | Description |
---|---|
sap.ui.comp.smartmicrochart.SmartComparisonMicroChart.extend |
Creates a new subclass of class sap.ui.comp.smartmicrochart.SmartComparisonMicroChart with name
|
sap.ui.comp.smartmicrochart.SmartComparisonMicroChart.getMetadata |
Returns a metadata object for class sap.ui.comp.smartmicrochart.SmartComparisonMicroChart. |
Creates a new subclass of class sap.ui.comp.smartmicrochart.SmartComparisonMicroChart 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.comp.smartmicrochart.SmartMicroChartBase.extend.
Param | Type | DefaultValue | Description |
---|---|---|---|
sClassName | string |
Name of the class being created |
|
oClassInfo | object |
Object literal with information about the class |
|
FNMetaImpl | function |
Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class |