sap.ca.ui.charts.Chart.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ca.ui.charts.Chart with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of informations as described in Element.extend.
Parameters:
{string} | sClassName | name of the class to be created |
{object} | oClassInfo? | object literal with informations about the class |
{function} | FNMetaImpl? | constructor function for the metadata object. If not given, it defaults to sap.ui.core.ElementMetadata. |
Returns:
{function} | the created class / constructor function |
Returns a metadata object for class sap.ca.ui.charts.Chart.
Returns:
_createId(): string
Creates an id for an Element prefixed with the control id
Returns:
Setter for property advancedChartSettings
.
Parameters:
{object} | settings | You can specify here any advanced viz chart settings that have not been exposed as a chart property. |
Returns:
Attach event handler
fnFunction
to the 'popoverAfterOpen' event of this
sap.ca.ui.charts.Chart
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.ca.ui.charts.Chart
.
itself. Event is fired after the popover is opened
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 call, when the event occurs. |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ca.ui.charts.Chart . itself. |
Returns:
Attach event handler
fnFunction
to the 'popoverBeforeOpen' event of this
sap.ca.ui.charts.Chart
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.ca.ui.charts.Chart
.
itself. Event is fired before the popover is opened
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 call, when the event occurs. |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ca.ui.charts.Chart . itself. |
Returns:
Attach event handler
fnFunction
to the 'selectDataPoint' event of this
sap.ca.ui.charts.Chart
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.ca.ui.charts.Chart
.
itself. Event is fired when the data point is selected/unselected on the chart
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 call, when the event occurs. |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ca.ui.charts.Chart . itself. |
Returns:
Binder for property label
.
Parameters:
{string} | sPath | path to a property in the model |
{function} | fnFormatter? | the formatter function |
{sap.ui.model.BindingMode} | sMode?, Default: Default | the binding mode to be used for this property binding (e.g. one way) |
Returns:
Setter for property dataLabelFormatter
.
Parameters:
{object} | formatterArray | new value for property dataLabelFormatter [formatterArray] must be a 2 dimensions array of formatters. [ [ measure 1 of X Axis , ..., [measure n of X Axis] ], [ measure 1 of X Axis 2 , ..., [measure n of X Axis 2] ] Each of these formatters can be: - a custom formatting function - a value of enum sap.ca.ui.charts.DefaultFormatterFunction If for an axis, formatters count < measures count, then first formatter of axis will be used for other measures. |
Returns:
Detach event handler
fnFunction
from the 'popoverAfterOpen' event of this
sap.ca.ui.charts.Chart
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener | Context object on which the given function had to be called. |
Returns:
Detach event handler
fnFunction
from the 'popoverBeforeOpen' event of this
sap.ca.ui.charts.Chart
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener | Context object on which the given function had to be called. |
Returns:
Detach event handler
fnFunction
from the 'selectDataPoint' event of this
sap.ca.ui.charts.Chart
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener | Context object on which the given function had to be called. |
Returns:
Fire event popoverAfterOpen to attached listeners.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
Fire event popoverBeforeOpen to attached listeners.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
Fire event selectDataPoint to attached listeners.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
getAdvancedChartSettings(): object
Getter for property
advancedChartSettings
. You can specify here any advanced viz chart settings that have not been exposed as a chart property.
Default value is empty/undefined
Returns:
{object} | the value of property advancedChartSettings |
Getter for property
chartPopOver
. chart PopOver
Default value is empty/undefined
Returns:
getChartSemanticColorFormatter(): object
Getter for property
chartSemanticColorFormatter
. Function that will be called when the chart is rendered in order to let the application decide which color should be use for each bar. The method should take the following parameter as input : - The data context of the current datashape And as output : - One of sap.ca.ui.charts.ChartSemanticColor type
Default value is empty/undefined
Returns:
{object} | the value of property chartSemanticColorFormatter |
getChartType(): string
Getter for property
chartType
. Type of viz chart that will be displayed.
Default value is Bar
Returns:
{string} | the value of property chartType |
getDataLabelFormatter(): object
Getter for property
dataLabelFormatter
. Formatter for Data Label
Default value is empty/undefined
Returns:
{object} | the value of property dataLabelFormatter |
getDataset(): object
Getter for property
dataset
. Viz Dataset that will hold the data to be displayed.
Default value is empty/undefined
Returns:
{object} | oDataset the value of property dataset |
Getter for property
height
. Target height for the charting area
Default value is 100%
Returns:
getIcon(): string
Getter for property
icon
. Icon of the Chart
Default value is empty/undefined
Returns:
{string} | the value of property icon |
getInternalVizChart(): object
Getter for property
internalVizChart
. internal Viz Chart
Default value is empty/undefined
Returns:
{object} | oInternalVizChart the value of property internalVizChart |
getLabel(): string
Getter for property
label
. User friendly name for the current chart type
Default value is empty/undefined
Returns:
{string} | the value of property label |
Getter for property
minShapeSize
. Minimum shape size for touch enabled actions, default and minimum to 48px !
Default value is 48px
Returns:
Getter for aggregation noData in Viz Chart. Control tree to display when there is no data available
Returns:
getPlotAreaAxisTooltipFormatter(): object
Getter for property
plotAreaAxisTooltipFormatter
. Formatter for plotArea Axis Tooltip in bubble charts
Default value is empty/undefined
Returns:
{object} | the value of property plotAreaAxisTooltipFormatter |
Getter for property
popoverFooter
. custom footer for popover
Default value is empty/undefined
Returns:
getPopoverFormatter(): object
Getter for property
popoverFormatter
. Formatter for popover
Default value is empty/undefined
Returns:
{object} | the value of property popoverFormatter |
getPopoverGroupFormatter(): string
Getter for property
popoverGroupFormatter
. Formatter for group label in the popover
Default value is empty/undefined
Returns:
{string} | the value of property popoverGroupFormatter |
Getter for property
popoverSubHeader
. custom subHeader for popover
Default value is empty/undefined
Returns:
getSecondAxisVisible(): boolean
Getter for property
secondAxisVisible
. Flag to show the second axis. Default is true
Default value is true
Returns:
{boolean} | the value of property secondAxisVisible |
Getter for property selectionMode
.
Returns:
getShowDataLabel(): boolean
Getter for property
showDataLabel
. Flag to display data values on the bar, default is set to true
Default value is true
Returns:
{boolean} | the value of property showDataLabel |
getShowHoverBackground(): boolean
Getter for property
showHoverBackground
. Hide / Show the hover background
Default value is false
Returns:
{boolean} | the value of property showHoverBackground |
getShowLegend(): boolean
Getter for property
showLegend
. Hide / Show the legend of the chart
Default value is true
Returns:
{boolean} | the value of property showLegend |
getShowPopover(): boolean
Getter for property
showPopover
. Hide / Show the sap.ca popover that gives information about what is available
Default value is true
Returns:
{boolean} | the value of property showPopover |
getShowTooltip(): boolean
Getter for property
showTooltip
. Hide / Show the CVOM tooltip
Default value is false
Returns:
{boolean} | the value of property showTooltip |
getStackedChartWidthEnhancer(): boolean
Getter for property
stackedChartWidthEnhancer
. You can use it if stacked bar width are to big. Disabled by default
Default value is false
Returns:
{boolean} | the value of property stackedChartWidthEnhancer |
getTitle(): string
Getter for property
title
. Title of the chart
Default value is empty/undefined
Returns:
{string} | the value of property title |
getTooltipFormatter(): object
Getter for property
tooltipFormatter
. Formatter for toolTip
Default value is empty/undefined
Returns:
{object} | the value of property tooltipFormatter |
Getter for property
width
. Target width for the charting area
Default value is 100%
Returns:
getXAxis2LabelFormatter(): string
Getter for property
xAxis2LabelFormatter
. Formatter for X Axis 2 Label
Default value is empty/undefined
Returns:
{string} | the value of property xAxis2LabelFormatter |
getXAxisLabelFormatter(): string
Getter for property
xAxisLabelFormatter
. Formatter for X Axis Label
Default value is empty/undefined
Returns:
{string} | the value of property xAxisLabelFormatter |
getYAxis2LabelFormatter(): string
Getter for property
yAxis2LabelFormatter
. Formatter for Y Axis 2 Label
Default value is empty/undefined
Returns:
{string} | the value of property yAxis2LabelFormatter |
getYAxisLabelFormatter(): string
Getter for property
yAxisLabelFormatter
. Formatter for Y Axis Label
Default value is empty/undefined
Returns:
{string} | the value of property yAxisLabelFormatter |
Setter for property minShapeSize
. Note: doesn't work for the bubble chart's bubbles sizes.
Parameters:
{string} | sMinShapeSize | Minimum shape size in pixels. |
Returns:
Setter for property popoverFormatter
.
Parameters:
{object} | formatterArray | new value for property popoverFormatter [formatterArray] must be a 2 dimensions array of formatters. [ [ measure 1 of X Axis , ..., [measure n of X Axis] ], [ measure 1 of X Axis 2 , ..., [measure n of X Axis 2] ] Each of these formatters can be: - a custom formatting function - a value of enum sap.ca.ui.charts.DefaultFormatterFunction If for an axis, formatters count < measures count, then first formatter of axis will be used for other measures. |
Returns:
Setter for property popoverGroupFormatter
.
Parameters:
{object} | formatter | new value for property popoverGroupFormatter formatter can be: - a custom formatting function - a value of enum sap.ca.ui.charts.DefaultFormatterFunction |
Returns:
Setter for property
advancedChartSettings
.
Default value is empty/undefined
Parameters:
{object} | oAdvancedChartSettings | new value for property advancedChartSettings |
Returns:
Setter for property chartPopOver
.
Parameters:
Returns:
Setter for property
chartSemanticColorFormatter
.
Default value is empty/undefined
Parameters:
{object} | oChartSemanticColorFormatter | new value for property chartSemanticColorFormatter |
Returns:
Setter for property
chartType
.
Default value is Bar
Parameters:
{string} | sChartType | new value for property chartType |
Returns:
Setter for property
dataLabelFormatter
.
Default value is empty/undefined
Parameters:
{object} | oDataLabelFormatter | new value for property dataLabelFormatter |
Returns:
Setter for property
dataset
.
Default value is empty/undefined
Parameters:
Returns:
Setter for property
height
.
Default value is 100%
Parameters:
Returns:
Setter for property
icon
.
Default value is empty/undefined
Parameters:
{string} | sIcon | new value for property icon |
Returns:
Setter for property
internalVizChart
.
Default value is oChart
Parameters:
{sap.viz.ui5.BaseChart} | oInternalVizChart | new value for property title |
Returns:
Setter for property
label
.
Default value is empty/undefined
Parameters:
{string} | sLabel | new value for property label |
Returns:
Setter for property
minShapeSize
.
Default value is 48px
Parameters:
Returns:
Catch the setModel call and make sure we refresh the size of the chart.
Parameters:
Returns:
setNoData(oControl)
setter for aggregation noData in Viz Chart. Control tree to display when there is no data available
Parameters:
Setter for property plotAreaAxisTooltipFormatter
.
Parameters:
{object} | formatterArray? | new value for property plotAreaAxisTooltipFormatter This is the tooltip for "bubbles" of bubble chart. [formatterArray] must be an array of 2 formatters (one for X Axis, one for Y axis). Each of these formatters can be: - a custom formatting function - a value of enum sap.ca.ui.charts.DefaultFormatterFunction |
Returns:
setPopoverFooter(oFooter)
setter for footer in the Popover.
Parameters:
Setter for property
popoverFormatter
.
Default value is empty/undefined
Parameters:
{object} | oPopoverFormatter | new value for property popoverFormatter |
Returns:
Setter for property
popoverGroupFormatter
.
Default value is empty/undefined
Parameters:
{string} | sPopoverGroupFormatter | new value for property popoverGroupFormatter |
Returns:
setPopoverSubHeader(oSubHeader)
setter for subHeader in the Popover.
Parameters:
{sap.m.Bar} | oSubHeader | new value for sub header |
Setter for property
secondAxisVisible
.
Default value is true
Parameters:
{boolean} | bSecondAxisVisible | new value for property secondAxisVisible |
Returns:
Setter for property
selectionMode
.
Default value is Multi
Parameters:
Returns:
Setter for property
showDataLabel
.
Default value is true
Parameters:
{boolean} | bShowDataLabel | new value for property showDataLabel |
Returns:
Setter for property
showHoverBackground
.
Default value is false
Parameters:
{boolean} | bShowHoverBackground | new value for property showHoverBackground |
Returns:
Setter for property
showLegend
.
Default value is true
Parameters:
{boolean} | bShowLegend | new value for property showLegend |
Returns:
Setter for property
showPopover
.
Default value is true
Parameters:
{boolean} | bShowPopover | new value for property showPopover |
Returns:
Setter for property
showTooltip
.
Default value is false
Parameters:
{boolean} | bShowTooltip | new value for property showTooltip |
Returns:
Setter for property
stackedChartWidthEnhancer
.
Default value is false
Parameters:
{boolean} | bStackedChartWidthEnhancer | new value for property stackedChartWidthEnhancer |
Returns:
Setter for property
title
.
Default value is Chart
Parameters:
{string} | sTitle | new value for property title |
Returns:
Setter for property
tooltipFormatter
.
Default value is empty/undefined
Parameters:
{object} | oTooltipFormatter | new value for property tooltipFormatter |
Returns:
Setter for property
width
.
Default value is 100%
Parameters:
Returns:
Setter for property
xAxis2LabelFormatter
.
Default value is empty/undefined
Parameters:
{string} | sXAxis2LabelFormatter | new value for property xAxis2LabelFormatter |
Returns:
Setter for property
xAxisLabelFormatter
.
Default value is empty/undefined
Parameters:
{string} | sXAxisLabelFormatter | new value for property xAxisLabelFormatter |
Returns:
Setter for property
yAxis2LabelFormatter
.
Default value is empty/undefined
Parameters:
{string} | sYAxis2LabelFormatter | new value for property yAxis2LabelFormatter |
Returns:
Setter for property
yAxisLabelFormatter
.
Default value is empty/undefined
Parameters:
{string} | sYAxisLabelFormatter | new value for property yAxisLabelFormatter |
Returns:
Setter for property tooltipFormatter
.
Parameters:
{object} | formatterArray | new value for property tooltipFormatter [formatterArray] must be a 2 dimensions array of formatters. [ [ measure 1 of X Axis , ..., [measure n of X Axis] ], [ measure 1 of X Axis 2 , ..., [measure n of X Axis 2] ] Each of these formatters can be: - a custom formatting function - a value of enum sap.ca.ui.charts.DefaultFormatterFunction If for an axis, formatters count < measures count, then first formatter of axis will be used for other measures. |
Returns:
Unbinder for property label
.
Returns:
Setter for property xAxis2LabelFormatter
.
Parameters:
{object} | formatter | new value for property xAxis2LabelFormatter formatter can be: - a custom formatting function - a value of enum sap.ca.ui.charts.DefaultFormatterFunction |
Returns:
Setter for property xAxisLabelFormatter
.
Parameters:
{object} | formatter | new value for property xAxisLabelFormatter formatter can be: - a custom formatting function - a value of enum sap.ca.ui.charts.DefaultFormatterFunction |
Returns:
Setter for property yAxis2LabelFormatter
.
Parameters:
{object} | formatter | new value for property yAxis2LabelFormatter formatter can be: - a custom formatting function - a value of enum sap.ca.ui.charts.DefaultFormatterFunction |
Returns:
Setter for property yAxisLabelFormatter
.
Parameters:
{object} | formatter | new value for property yAxisLabelFormatter formatter can be: - a custom formatting function - a value of enum sap.ca.ui.charts.DefaultFormatterFunction |
Returns: