Class sap.gantt.shape.ext.ubc.UtilizationBarChartModule: sap/gantt/shape/ext/ubc/UtilizationBarChart

extends Group

UBC is a complex shape. This class is the outer container with tag='g'. All fragments are aggregated into this container. You can remove a fragment from the container if your application does not need it.

The container has six aggregations:

A super class sap.gantt.shape.ext.ubc.UbcPolygon is abstracted because the four polygons in this container (UbcOverCapacityZonePolygon, UbcUnderCapacityZonePolygon, UbcShortageCapacityPolygon, and UbcUsedPolygon) share similar logic.

Graphic Effect is:
Capacity: 50 Required Capacity: 65Capacity: 45 Required Capacity: 10Capacity: 65 Required Capacity: 75Capacity: 75 Required Capacity: 35Capacity: 55 Required Capacity: 55Capacity: 55 Required Capacity: 75OverCapacityZonePlannedCapacityShortageHealthyPlannedCapacityUnPlannedCapacity

An example of the structure of data to feed utilization bar chart:
{ bc_capacity: { id: "capacity_0", period: [ { start_date: "20160123000000", supply: "9", demand: "7" },{ start_date: "20160127093400", supply: "8", demand: "8" } ] }, bc_tooltip: [ { start_date: "20160123000000", supply: "9", demand: "7", end_date: "20160127093400" },{ start_date: "20160127093400", supply: "8", demand: "8", start_date: "20160203134520" } ] }

Constructor Summary
new sap.gantt.shape.ext.ubc.UtilizationBarChart(sId?, mSettings?)Creates and initializes a new Utilization Bar Chart (UBC) container class.
Method Summary
sap.gantt.shape.ext.ubc.UtilizationBarChart.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.gantt.shape.ext.ubc.UtilizationBarChart with name sClassName and enriches it with the information contained in oClassInfo.
sap.gantt.shape.ext.ubc.UtilizationBarChart.getMetadata()Returns a metadata object for class sap.gantt.shape.ext.ubc.UtilizationBarChart.
getEnableSelection(oData, oRowInfo)Gets the value of property enableSelection.
Constructor Detail
new sap.gantt.shape.ext.ubc.UtilizationBarChart(sId?, mSettings?)
Creates and initializes a new Utilization Bar Chart (UBC) container class.
Parameters:
{string}sId? ID of the new control, generated automatically if no ID is given
{object}mSettings? Initial settings of the new control
Method Detail
sap.gantt.shape.ext.ubc.UtilizationBarChart.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.gantt.shape.ext.ubc.UtilizationBarChart with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.gantt.shape.Group.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.gantt.shape.ext.ubc.UtilizationBarChart.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.gantt.shape.ext.ubc.UtilizationBarChart.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getEnableSelection(oData, oRowInfo): boolean
Gets the value of property enableSelection.

This property determines whether a shape is enabled for selection behavior. The default value for the Utilization Line Chart is false.

Parameters:
{object}oData Shape data.
{object}oRowInfo Information about the row and row data.
Returns:
{boolean} Value of property enableSelection.