Class sap.viz.ui5.core.BaseChartModule: sap/viz/ui5/core/BaseChart
An abstract base class for all VIZ charts
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.
sClassName
and enriches it with the information contained in oClassInfo
.fnFunction
to the beforeCreateViz
event of this sap.viz.ui5.core.BaseChart
.fnFunction
from the beforeCreateViz
event of this sap.viz.ui5.core.BaseChart
. 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
- Aggregations
- Events
- beforeCreateViz : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
In addition, all settings applicable to the base type sap.ui.core.Control 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.
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters | |
{object} | oControlEvent.getParameters.usrOptions | Value for the parameter with the same name of the createViz call. |
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.
{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 |
fnFunction
to the beforeCreateViz
event of this sap.viz.ui5.core.BaseChart
. 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.viz.ui5.core.BaseChart
itself.
Fired before a new VIZ instance is created. Event parameter "usrOptions" contains the intended value for the parameter with the same name of the createViz call.
{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.viz.ui5.core.BaseChart itself |
{sap.viz.ui5.core.BaseChart} | Reference to this in order to allow method chaining |
dataset
. {sap.viz.ui5.core.BaseChart} | Reference to this in order to allow method chaining |
noData
. {sap.viz.ui5.core.BaseChart} | Reference to this in order to allow method chaining |
fnFunction
from the beforeCreateViz
event of this sap.viz.ui5.core.BaseChart
. The passed function and listener object must match the ones used for event registration.
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
{sap.viz.ui5.core.BaseChart} | Reference to this in order to allow method chaining |
beforeCreateViz
to attached listeners. Expects the following event parameters:
usrOptions
of typeobject
Value for the parameter with the same name of the createViz call.
{Map} | mArguments? | The arguments to pass along with the event |
{sap.viz.ui5.core.BaseChart} | Reference to this in order to allow method chaining |
css
. CSS style of Chart.
{string} | Value of property css |
dataset
. Dataset for this chart
{sap.viz.ui5.data.Dataset} |
height
. Height of the Chart as a CSS size.
Default value is 480px
.
{sap.ui.core.CSSSize} | Value of property height |
noData
. Control tree to display when there is no data available
{sap.ui.core.Control} |
width
. Width of the Chart as a CSS size.
Default value is 640px
.
{sap.ui.core.CSSSize} | Value of property width |
css
. CSS style of Chart.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sCss | New value for property css |
{sap.viz.ui5.core.BaseChart} | Reference to this in order to allow method chaining |
dataset
. {sap.viz.ui5.data.Dataset} | oDataset | The dataset to set |
{sap.viz.ui5.core.BaseChart} | Reference to this in order to allow method chaining |
height
. Height of the Chart as a CSS size.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 480px
.
{sap.ui.core.CSSSize} | sHeight | New value for property height |
{sap.viz.ui5.core.BaseChart} | Reference to this in order to allow method chaining |
noData
. {sap.ui.core.Control} | oNoData | The noData to set |
{sap.viz.ui5.core.BaseChart} | Reference to this in order to allow method chaining |
width
. Width of the Chart as a CSS size.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 640px
.
{sap.ui.core.CSSSize} | sWidth | New value for property width |
{sap.viz.ui5.core.BaseChart} | Reference to this in order to allow method chaining |