Class sap.gantt.shape.ext.ubc.UtilizationBarChartModule: sap/gantt/shape/ext/ubc/UtilizationBarChart
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:
- sap.gantt.shape.ext.ubc.UbcOverCapacityZonePolygon(used to represent the OverCapacity Zone area),
- sap.gantt.shape.ext.ubc.UbcUnderCapacityZonePolygon(used to represent the Unplanned Capacity area),
- sap.gantt.shape.ext.ubc.UbcShortageCapacityPolygon(used to the draw Shortage area),
- sap.gantt.shape.ext.ubc.UbcUsedPolygon(used to represent the HealthyPlanned Capacity area),
- sap.gantt.shape.ext.ubc.UbcBorderPath(used to represent the planned capacity line),
- sap.gantt.shape.ext.ubc.UbcTooltipRectangle(used to represent a rectangle with invisible tooltips for each period of capacity change).
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:
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" } ] }
sClassName and enriches it with the information contained in oClassInfo.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.
| {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 |
enableSelection. This property determines whether a shape is enabled for selection behavior. The default value for the Utilization Line Chart is false.
| {object} | oData | Shape data. |
| {object} | oRowInfo | Information about the row and row data. |
| {boolean} | Value of property enableSelection. |