Class sap.viz.ui5.BarModule: sap/viz/ui5/Bar

extends BaseChart

Chart sap.viz.ui5.Bar

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(new sap.viz.ui5.controls.VizFrame({'vizType': 'bar'})) 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.
Constructor Summary
new sap.viz.ui5.Bar(sId?, mSettings?)Constructor for a new sap.viz.ui5.Bar

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers.

Event Summary
deselectData(oControlEvent)Event fires when certain data point(s) is(are) deselected, data context of deselected item(s) would be passed in accordance with the following format.
initialized(oControlEvent)Event fires when the loading ends.
selectData(oControlEvent)Event fires when certain data point(s) is(are) selected, data context of selected item(s) would be passed in accordance with the following format.
hideTooltip(oControlEvent)This event is deprecated, please use hideDetail decoration (refer to properties: interaction.decorations) instead.
showTooltip(oControlEvent)This event is deprecated, please use showDetail decoration (refer to properties: interaction.decorations) instead.
Events borrowed from class sap.ui.core.Control
Method Summary
sap.viz.ui5.Bar.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.viz.ui5.Bar with name sClassName and enriches it with the information contained in oClassInfo.
sap.viz.ui5.Bar.getMetadata()Returns a metadata object for class sap.viz.ui5.Bar.
attachDeselectData(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the deselectData event of this sap.viz.ui5.Bar.
attachInitialized(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the initialized event of this sap.viz.ui5.Bar.
attachSelectData(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the selectData event of this sap.viz.ui5.Bar.
destroyBackground()Destroys the background in the aggregation background.
destroyDataLabel()Destroys the dataLabel in the aggregation dataLabel.
destroyGeneral()Destroys the general in the aggregation general.
destroyInteraction()Destroys the interaction in the aggregation interaction.
destroyLegend()Destroys the legend in the aggregation legend.
destroyLegendGroup()Destroys the legendGroup in the aggregation legendGroup.
destroyPlotArea()Destroys the plotArea in the aggregation plotArea.
destroyTitle()Destroys the title in the aggregation title.
destroyToolTip()Destroys the toolTip in the aggregation toolTip.
destroyXAxis()Destroys the xAxis in the aggregation xAxis.
destroyXyContainer()Destroys the xyContainer in the aggregation xyContainer.
destroyYAxis()Destroys the yAxis in the aggregation yAxis.
detachDeselectData(fnFunction, oListener)Detaches event handler fnFunction from the deselectData event of this sap.viz.ui5.Bar.
detachInitialized(fnFunction, oListener)Detaches event handler fnFunction from the initialized event of this sap.viz.ui5.Bar.
detachSelectData(fnFunction, oListener)Detaches event handler fnFunction from the selectData event of this sap.viz.ui5.Bar.
fireDeselectData(mArguments?)Fires event deselectData to attached listeners.
fireInitialized(mArguments?)Fires event initialized to attached listeners.
fireSelectData(mArguments?)Fires event selectData to attached listeners.
getBackground()Gets content of aggregation background.
getDataLabel()Gets content of aggregation dataLabel.
getGeneral()Gets content of aggregation general.
getInteraction()Gets content of aggregation interaction.
getLegend()Gets content of aggregation legend.
getLegendGroup()Gets content of aggregation legendGroup.
getPlotArea()Gets content of aggregation plotArea.
getTitle()Gets content of aggregation title.
getToolTip()Gets content of aggregation toolTip.
getXAxis()Gets content of aggregation xAxis.
getXyContainer()Gets content of aggregation xyContainer.
getYAxis()Gets content of aggregation yAxis.
setBackground(oBackground)Sets the aggregated background.
setDataLabel(oDataLabel)Sets the aggregated dataLabel.
setGeneral(oGeneral)Sets the aggregated general.
setInteraction(oInteraction)Sets the aggregated interaction.
setLegend(oLegend)Sets the aggregated legend.
setLegendGroup(oLegendGroup)Sets the aggregated legendGroup.
setPlotArea(oPlotArea)Sets the aggregated plotArea.
setTitle(oTitle)Sets the aggregated title.
setToolTip(oToolTip)Sets the aggregated toolTip.
setXAxis(oXAxis)Sets the aggregated xAxis.
setXyContainer(oXyContainer)Sets the aggregated xyContainer.
setYAxis(oYAxis)Sets the aggregated yAxis.
attachHideTooltip(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the hideTooltip event of this sap.viz.ui5.Bar.
attachShowTooltip(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the showTooltip event of this sap.viz.ui5.Bar.
detachHideTooltip(fnFunction, oListener)Detaches event handler fnFunction from the hideTooltip event of this sap.viz.ui5.Bar.
detachShowTooltip(fnFunction, oListener)Detaches event handler fnFunction from the showTooltip event of this sap.viz.ui5.Bar.
fireHideTooltip(mArguments?)Fires event hideTooltip to attached listeners.
fireShowTooltip(mArguments?)Fires event showTooltip to attached listeners.
Constructor Detail
new sap.viz.ui5.Bar(sId?, mSettings?)
Constructor for a new sap.viz.ui5.Bar

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:

  • Aggregations
  • Events
    • selectData : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
    • deselectData : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
    • showTooltip : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
    • hideTooltip : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
    • initialized : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]

In addition, all settings applicable to the base type sap.viz.ui5.core.BaseChart 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
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(new sap.viz.ui5.controls.VizFrame({'vizType': 'bar'})) 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.

Event Detail
deselectData(oControlEvent)
Event fires when certain data point(s) is(are) deselected, data context of deselected item(s) would be passed in accordance with the following format.{name: "deselectData",data:["---the same as selectedData---"]}
Parameters:
{sap.ui.base.Event}oControlEvent
{sap.ui.base.EventProvider}oControlEvent.getSource
{object}oControlEvent.getParameters
initialized(oControlEvent)
Event fires when the loading ends. To use the event listener when creating charts, you must use an event that is passed by the events option. For more information on events options, see the usrOptions section of the createViz function in the API document.
Parameters:
{sap.ui.base.Event}oControlEvent
{sap.ui.base.EventProvider}oControlEvent.getSource
{object}oControlEvent.getParameters
selectData(oControlEvent)
Event fires when certain data point(s) is(are) selected, data context of selected item(s) would be passed in accordance with the following format.{name: "selectData",data:[{ //selected element's detail target:"Dom Element",//an object pointed to corresponding dom element data:[{val: "...",//value of this element ctx:{type:"Dimension"||"Measure"||"MND", //for Dimension path:{aa:"...",di:"...",dii:"..."}, //for Measure path:{mg:"...",mi:"...",dii_a1:"...",dii_a2:"..."}, //for MND path:{mg:"...",mi:"..."} //path: analysis path //aa: analysis axis index // 0 for analysis axis 1, 1 for analysis 2 //di: dimension index //zero based //dii: dimension item index //zero based //mg: measure group index // 0 for measure group 1,1 for measure group 2 //mi: measure index // measure index in measure group zero based //dii_a1: each dii of di in analysis axis 1 index //dii_a2: each dii of di in analysis axis 2 index }},{ //for bubble, tagcloud and scatter, there will be more than one values in one selected element. var:"...",ctx:"..."}]},{ //if under multi selection, there will be more than one selected elements target:"...",data:["..."]}]}
Parameters:
{sap.ui.base.Event}oControlEvent
{sap.ui.base.EventProvider}oControlEvent.getSource
{object}oControlEvent.getParameters
hideTooltip(oControlEvent)
This event is deprecated, please use hideDetail decoration (refer to properties: interaction.decorations) instead. Event fires when the mouse hover out of the specific part of chart, no data is passed.
Parameters:
{sap.ui.base.Event}oControlEvent
{sap.ui.base.EventProvider}oControlEvent.getSource
{object}oControlEvent.getParameters
Deprecated:
Since version 1.19. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
showTooltip(oControlEvent)
This event is deprecated, please use showDetail decoration (refer to properties: interaction.decorations) instead. Event fires when the mouse hover onto the specific part of chart, data context of tooltip would be passed in accordance with the following format.{name:"showTooltip",data:{body:[{ //All measures name:"...",val:[{//measure value is an array containing only one item value:"..."}]},"..."],footer:[{label:"...",value:"..."},"..."],plotArea:{ //this object specifies the plot area of the chart height:"...",width:"...",x:"...",y:"..."},point:{ //this object specifies a point which affects the position of tooltip x:"...",y:"..."},selectedValues:...//this number specify how many values are selected}}
Parameters:
{sap.ui.base.Event}oControlEvent
{sap.ui.base.EventProvider}oControlEvent.getSource
{object}oControlEvent.getParameters
Deprecated:
Since version 1.19. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
Method Detail
sap.viz.ui5.Bar.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.viz.ui5.Bar with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.viz.ui5.core.BaseChart.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.viz.ui5.Bar.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.viz.ui5.Bar.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
attachDeselectData(oData?, fnFunction, oListener?): sap.viz.ui5.Bar
Attaches event handler fnFunction to the deselectData event of this sap.viz.ui5.Bar.

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.Bar itself.

Event fires when certain data point(s) is(are) deselected, data context of deselected item(s) would be passed in accordance with the following format.{name: "deselectData",data:["---the same as selectedData---"]}

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.viz.ui5.Bar itself
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
attachInitialized(oData?, fnFunction, oListener?): sap.viz.ui5.Bar
Attaches event handler fnFunction to the initialized event of this sap.viz.ui5.Bar.

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.Bar itself.

Event fires when the loading ends. To use the event listener when creating charts, you must use an event that is passed by the events option. For more information on events options, see the usrOptions section of the createViz function in the API document.

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.viz.ui5.Bar itself
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
attachSelectData(oData?, fnFunction, oListener?): sap.viz.ui5.Bar
Attaches event handler fnFunction to the selectData event of this sap.viz.ui5.Bar.

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.Bar itself.

Event fires when certain data point(s) is(are) selected, data context of selected item(s) would be passed in accordance with the following format.{name: "selectData",data:[{ //selected element's detail target:"Dom Element",//an object pointed to corresponding dom element data:[{val: "...",//value of this element ctx:{type:"Dimension"||"Measure"||"MND", //for Dimension path:{aa:"...",di:"...",dii:"..."}, //for Measure path:{mg:"...",mi:"...",dii_a1:"...",dii_a2:"..."}, //for MND path:{mg:"...",mi:"..."} //path: analysis path //aa: analysis axis index // 0 for analysis axis 1, 1 for analysis 2 //di: dimension index //zero based //dii: dimension item index //zero based //mg: measure group index // 0 for measure group 1,1 for measure group 2 //mi: measure index // measure index in measure group zero based //dii_a1: each dii of di in analysis axis 1 index //dii_a2: each dii of di in analysis axis 2 index }},{ //for bubble, tagcloud and scatter, there will be more than one values in one selected element. var:"...",ctx:"..."}]},{ //if under multi selection, there will be more than one selected elements target:"...",data:["..."]}]}

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.viz.ui5.Bar itself
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
destroyBackground(): sap.viz.ui5.Bar
Destroys the background in the aggregation background.
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
destroyDataLabel(): sap.viz.ui5.Bar
Destroys the dataLabel in the aggregation dataLabel.
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
destroyGeneral(): sap.viz.ui5.Bar
Destroys the general in the aggregation general.
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
destroyInteraction(): sap.viz.ui5.Bar
Destroys the interaction in the aggregation interaction.
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
destroyLegend(): sap.viz.ui5.Bar
Destroys the legend in the aggregation legend.
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
destroyLegendGroup(): sap.viz.ui5.Bar
Destroys the legendGroup in the aggregation legendGroup.
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
destroyPlotArea(): sap.viz.ui5.Bar
Destroys the plotArea in the aggregation plotArea.
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
destroyTitle(): sap.viz.ui5.Bar
Destroys the title in the aggregation title.
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
destroyToolTip(): sap.viz.ui5.Bar
Destroys the toolTip in the aggregation toolTip.
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
destroyXAxis(): sap.viz.ui5.Bar
Destroys the xAxis in the aggregation xAxis.
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
destroyXyContainer(): sap.viz.ui5.Bar
Destroys the xyContainer in the aggregation xyContainer.
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
destroyYAxis(): sap.viz.ui5.Bar
Destroys the yAxis in the aggregation yAxis.
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
detachDeselectData(fnFunction, oListener): sap.viz.ui5.Bar
Detaches event handler fnFunction from the deselectData event of this sap.viz.ui5.Bar.

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.viz.ui5.Bar} Reference to this in order to allow method chaining
detachInitialized(fnFunction, oListener): sap.viz.ui5.Bar
Detaches event handler fnFunction from the initialized event of this sap.viz.ui5.Bar.

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.viz.ui5.Bar} Reference to this in order to allow method chaining
detachSelectData(fnFunction, oListener): sap.viz.ui5.Bar
Detaches event handler fnFunction from the selectData event of this sap.viz.ui5.Bar.

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.viz.ui5.Bar} Reference to this in order to allow method chaining
fireDeselectData(mArguments?): sap.viz.ui5.Bar
Fires event deselectData to attached listeners.
Parameters:
{Map}mArguments? The arguments to pass along with the event
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
fireInitialized(mArguments?): sap.viz.ui5.Bar
Fires event initialized to attached listeners.
Parameters:
{Map}mArguments? The arguments to pass along with the event
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
fireSelectData(mArguments?): sap.viz.ui5.Bar
Fires event selectData to attached listeners.
Parameters:
{Map}mArguments? The arguments to pass along with the event
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
Gets content of aggregation background.

Module sap.viz.modules.background

Returns:
{sap.viz.ui5.types.Background}
Gets content of aggregation dataLabel.

Module sap.viz.modules.datalabel

Returns:
{sap.viz.ui5.types.Datalabel}
Gets content of aggregation general.

Module sap.viz.modules.rootContainer

Returns:
{sap.viz.ui5.types.RootContainer}
Gets content of aggregation interaction.

Module sap.viz.modules.controller.interaction

Returns:
{sap.viz.ui5.types.controller.Interaction}
Gets content of aggregation legend.

Module sap.viz.modules.legend.common

Returns:
{sap.viz.ui5.types.legend.Common}
getLegendGroup(): sap.viz.ui5.types.Legend
Gets content of aggregation legendGroup.

Module sap.viz.modules.legend

Returns:
{sap.viz.ui5.types.Legend}
getPlotArea(): sap.viz.ui5.types.Bar
Gets content of aggregation plotArea.

Module sap.viz.modules.bar

Returns:
{sap.viz.ui5.types.Bar}
Gets content of aggregation title.

Module sap.viz.modules.title

Returns:
{sap.viz.ui5.types.Title}
Gets content of aggregation toolTip.

Module sap.viz.chart.elements.Tooltip

Returns:
{sap.viz.ui5.types.Tooltip}
Gets content of aggregation xAxis.

Module sap.viz.modules.axis

Returns:
{sap.viz.ui5.types.Axis}
Gets content of aggregation xyContainer.

Module sap.viz.modules.xycontainer

Returns:
{sap.viz.ui5.types.XYContainer}
Gets content of aggregation yAxis.

Module sap.viz.modules.axis

Returns:
{sap.viz.ui5.types.Axis}
setBackground(oBackground): sap.viz.ui5.Bar
Sets the aggregated background.
Parameters:
{sap.viz.ui5.types.Background}oBackground The background to set
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
setDataLabel(oDataLabel): sap.viz.ui5.Bar
Sets the aggregated dataLabel.
Parameters:
{sap.viz.ui5.types.Datalabel}oDataLabel The dataLabel to set
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
setGeneral(oGeneral): sap.viz.ui5.Bar
Sets the aggregated general.
Parameters:
{sap.viz.ui5.types.RootContainer}oGeneral The general to set
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
setInteraction(oInteraction): sap.viz.ui5.Bar
Sets the aggregated interaction.
Parameters:
{sap.viz.ui5.types.controller.Interaction}oInteraction The interaction to set
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
setLegend(oLegend): sap.viz.ui5.Bar
Sets the aggregated legend.
Parameters:
{sap.viz.ui5.types.legend.Common}oLegend The legend to set
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
setLegendGroup(oLegendGroup): sap.viz.ui5.Bar
Sets the aggregated legendGroup.
Parameters:
{sap.viz.ui5.types.Legend}oLegendGroup The legendGroup to set
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
setPlotArea(oPlotArea): sap.viz.ui5.Bar
Sets the aggregated plotArea.
Parameters:
{sap.viz.ui5.types.Bar}oPlotArea The plotArea to set
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
setTitle(oTitle): sap.viz.ui5.Bar
Sets the aggregated title.
Parameters:
{sap.viz.ui5.types.Title}oTitle The title to set
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
setToolTip(oToolTip): sap.viz.ui5.Bar
Sets the aggregated toolTip.
Parameters:
{sap.viz.ui5.types.Tooltip}oToolTip The toolTip to set
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
setXAxis(oXAxis): sap.viz.ui5.Bar
Sets the aggregated xAxis.
Parameters:
{sap.viz.ui5.types.Axis}oXAxis The xAxis to set
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
setXyContainer(oXyContainer): sap.viz.ui5.Bar
Sets the aggregated xyContainer.
Parameters:
{sap.viz.ui5.types.XYContainer}oXyContainer The xyContainer to set
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
setYAxis(oYAxis): sap.viz.ui5.Bar
Sets the aggregated yAxis.
Parameters:
{sap.viz.ui5.types.Axis}oYAxis The yAxis to set
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
attachHideTooltip(oData?, fnFunction, oListener?): sap.viz.ui5.Bar
Attaches event handler fnFunction to the hideTooltip event of this sap.viz.ui5.Bar.

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.Bar itself.

This event is deprecated, please use hideDetail decoration (refer to properties: interaction.decorations) instead. Event fires when the mouse hover out of the specific part of chart, no data is passed.

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.viz.ui5.Bar itself
Deprecated:
Since version 1.19. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
attachShowTooltip(oData?, fnFunction, oListener?): sap.viz.ui5.Bar
Attaches event handler fnFunction to the showTooltip event of this sap.viz.ui5.Bar.

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.Bar itself.

This event is deprecated, please use showDetail decoration (refer to properties: interaction.decorations) instead. Event fires when the mouse hover onto the specific part of chart, data context of tooltip would be passed in accordance with the following format.{name:"showTooltip",data:{body:[{ //All measures name:"...",val:[{//measure value is an array containing only one item value:"..."}]},"..."],footer:[{label:"...",value:"..."},"..."],plotArea:{ //this object specifies the plot area of the chart height:"...",width:"...",x:"...",y:"..."},point:{ //this object specifies a point which affects the position of tooltip x:"...",y:"..."},selectedValues:...//this number specify how many values are selected}}

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.viz.ui5.Bar itself
Deprecated:
Since version 1.19. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
detachHideTooltip(fnFunction, oListener): sap.viz.ui5.Bar
Detaches event handler fnFunction from the hideTooltip event of this sap.viz.ui5.Bar.

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
Deprecated:
Since version 1.19. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
detachShowTooltip(fnFunction, oListener): sap.viz.ui5.Bar
Detaches event handler fnFunction from the showTooltip event of this sap.viz.ui5.Bar.

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
Deprecated:
Since version 1.19. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
fireHideTooltip(mArguments?): sap.viz.ui5.Bar
Fires event hideTooltip to attached listeners.
Parameters:
{Map}mArguments? The arguments to pass along with the event
Deprecated:
Since version 1.19. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining
fireShowTooltip(mArguments?): sap.viz.ui5.Bar
Fires event showTooltip to attached listeners.
Parameters:
{Map}mArguments? The arguments to pass along with the event
Deprecated:
Since version 1.19. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
Returns:
{sap.viz.ui5.Bar} Reference to this in order to allow method chaining