ResourceUtilization

View showing the utilization levels of the project resources. The resources are displayed in a summary list where each row can be expanded to show the events assigned for the resource.

This demo shows the Resource utilization widget:

Resource utilization
//<code-header>
fiddle.title = 'Resource utilization';
//</code-header>
const resourceUtilization = new ResourceUtilization({
    project : {
        transport : {
            load : {
                url : 'data/SchedulerPro/examples/view/ResourceUtilization.json'
            }
        },
        autoLoad : true
    },
    columns : [
        { type : 'tree', text : 'Name', field : 'name', width : 150 }
    ],
    startDate  : new Date(2020, 3, 26),
    endDate    : new Date(2020, 4, 15),
    appendTo   : targetElement,
    rowHeight  : 40,
    tickSize   : 40,
    minHeight  : '20em',
    // display tooltip
    showBarTip : true
});

The view requires a Project instance to be provided:

const project = new ProjectModel({
    autoLoad  : true,
    transport : {
        load : {
            url : 'examples/schedulerpro/view/data.json'
        }
    }
});

const resourceUtilization = new ResourceUtilization({
    project,
    appendTo    : 'targetDiv',
    rowHeight   : 60,
    minHeight   : '20em',
    flex        : '1 1 50%',
    showBarTip  : true
});

Pairing the component

You can also pair the view with other timeline views such as the Gantt or Scheduler, using the partner config.

Changing displayed values

To change the displayed bar texts, supply a getBarText function. Here for example the provided function displays resources time left instead of allocated time

new ResourceUtilization({
    getBarText(datum) {
        const view = this.owner;

        // get default bar text
        let result = view.getBarTextDefault(...arguments);

        // For resource records we will display the time left for allocation
        if (result && datum.resource) {

            const unit = view.getBarTextEffortUnit();

            // display the resource available time
            result = view.getEffortText(datum.maxEffort - datum.effort, unit);
        }

        return result;
    },
})

Configs

246

Common

columnsGridBase
dataGridBase
emptyTextGridBase
endDateTimelineBase
featuresGridBase
keyMapGridBase
listenersEvents
maxDateTimelineBase
minDateTimelineBase
presetsTimelineViewPresets
rowHeightGridBase
startDateTimelineBase
storeGridBase
viewPresetTimelineViewPresets
visibleDateTimelineBase

Other

A Function which returns the tooltip text to display when hovering a bar. The following parameters are passed:

ParameterTypeDescription
dataObject

The backing data of the histogram rectangle

data.rectConfigObject

The rectangle configuration object

data.datumObject

The hovered bar data

data.indexNumber

The index of the hovered bar data

data.recordResourceUtilizationModel

The record which effort the hovered bar displays.

Returns: String -

Tooltip HTML content

getBarClass: function

A Function which returns a CSS class name to add to a rectangle element. The following parameters are passed:

ParameterTypeDescription
seriesHistogramSeries

The series being rendered

domConfigDomConfig

The rectangle configuration object

datumResourceAllocationInterval | AssignmentAllocationInterval

The datum being rendered. Either ResourceAllocationInterval object for resource records (root level records) or AssignmentAllocationInterval object for assignment records

indexNumber

The index of the datum being rendered

renderDataResourceUtilizationRenderData

Current render data giving access to the record, row and cell being rendered.

Returns: String -

CSS classes of the rectangle element

getBarDOMConfig: function

A Function which if provided returns DOM configuration object for a bar (a RECT element representing a single "bar"-type value). The function accepts default prepared DOM configuration in an argument which then can be processed and returned.

new ResourceUtilization({
    // Let's add left & right margins to bars
    getBarDOMConfig(series, domConfig) {
        // margin size is 10% of the bar width
        const xMargin = 0.1 * domConfig.width;

        // adjust the bar x-coordinate
        domConfig.x += xMargin;
        // reduce the bar width respectively
        domConfig.width -= 2 * xMargin;

        // return the edited domConfig
        return domConfig;
    },
    ...
})

Please note that it's important to return a DOM configuration object. If the function doesn't do that the corresponding bar won't be displayed.

The function will be injected into the underlying Histogram component that is used under the hood to render charts. So this will refer to the Histogram instance, not this class instance. To access the view please use this.owner in the function:

new ResourceUtilization({
    getBarText(datum) {
        // "this" in the method refers core Histogram instance
        // get the view instance
        const resourceUtilization = this.owner;

        .....
    },
    ...
})

The following parameters are passed:

ParameterTypeDescription
seriesHistogramSeries

The series being rendered

domConfigDomConfig

The rectangle DOM configuration object

datumResourceAllocationInterval | AssignmentAllocationInterval

The datum being rendered. Either ResourceAllocationInterval object for resource records (root level records) or AssignmentAllocationInterval object for assignment records

indexNumber

The index of the datum being rendered

renderDataResourceUtilizationRenderData

Current render data giving access to the record, row and cell being rendered.

Returns: Object -

Resulting DOM configuration object. If no value returned the bar is not displayed.

getBarText: function

A Function which returns the text to render inside a bar.

Here for example the provided function displays resources time left instead of allocated time

new ResourceUtilization({
    getBarText(datum) {
        const resourceUtilization = this.owner;

        // get default bar text
        let result = view.getBarTextDefault();

        // For resource records we will display the time left for allocation
        if (result && datum.resource) {

            const unit = resourceUtilization.getBarTextEffortUnit();

            // display the resource available time
            result = resourceUtilization.getEffortText(datum.maxEffort - datum.effort, unit);
        }

        return result;
    },
})

Please note that the function will be injected into the underlying Histogram component that is used under the hood to render actual charts. So this in the function will refer to the Histogram instance. To access the ResourceUtilization instance please use this.owner in the function body:

new ResourceUtilization({
    getBarText(datum) {
        // "this" in the method refers core Histogram instance
        // get the view instance
        const view = this.owner;

        .....
    },
})

The following parameters are passed:

ParameterTypeDescription
datumResourceAllocationInterval | AssignmentAllocationInterval

The datum being rendered. Either ResourceAllocationInterval object for resource records (root level records) or AssignmentAllocationInterval object for assignment records

indexNumber

The index of the datum being rendered

Returns: String -

Text to render inside the bar

A Function which returns a DOM configuration object for text elements.

new ResourceUtilization({
    getBarTextDOMConfig(domConfig, datum, index) {
        // change text vertical location
        domConfig.y = '10%';

        return domConfig;
    },
    ...
})

Please note that it's important to return a DOM configuration object. If the function doesn't do that the corresponding text element won't be displayed.

The function will be injected into the underlying Histogram component that is used under the hood to render actual charts. So this will refer to the Histogram instance, not this class instance. To access the view please use this.owner in the function:

new ResourceUtilization({
    getBarTextDOMConfig(domConfig) {
        // "this" in the method refers core Histogram instance
        // get the view instance
        const resourceUtilization = this.owner;

        .....

        return domConfig;
    },
    ...
})

The following parameters are passed:

ParameterTypeDescription
domConfigDomConfig

The TEXT element DOM configuration object

datumResourceAllocationInterval | AssignmentAllocationInterval

The datum being rendered. Either ResourceAllocationInterval object for resource records (root level records) or AssignmentAllocationInterval object for assignment records

indexNumber

The index of the datum being rendered

seriesHistogramSeries

The series (provided if histogram widget singleTextForAllBars is false)

renderDataResourceUtilizationRenderData

Current render data giving access to the record, row and cell being rendered.

Returns: Object -

The TEXT element DOM configuration object. If no value returned the text element is not displayed.

A ProjectModel instance (or a config object) to display resource allocation of.

Note: This config is mandatory.

showBarText: Boolean= true

Set to true if you want to display resources effort values in bars (for example: 24h, 7d, 60min etc.). The text contents can be changed by providing getBarText function.

assignmentFilterFnResourceHistogram
barTextEffortUnitResourceHistogram
barTipEffortUnitResourceHistogram
columnWidget
costFormatResourceHistogram
dataModelFieldTimelineHistogramBase
defaultFocusContainer
drawerPanel
effortFormatResourceHistogram
effortUnitResourceHistogram
getOutlineClassResourceHistogram
getOutlineDOMConfigResourceHistogram
getRecordDataTimelineHistogramBase
histogramWidgetTimelineHistogramBase
histogramWidgetClassTimelineHistogramBase
includeInactiveEventsResourceHistogram
labelPositionContainer
passStartEndParametersSchedulerStores
renditionContainer
resourceImagesSchedulerResourceRendering
respectStoreFiltersResourceHistogram
rtlRTL
scalePointsTimelineHistogramScaleColumn
seriesTimelineHistogramBase
showBarTipTimelineHistogramBase
showEffortUnitResourceHistogram
showMaxEffortResourceHistogram
spanWidget
stateSettingsGridState
transitionGridBase

Accessibility

ariaLabelWidget

Content

bbarPanel
defaultsContainer
footerPanel
headerPanel
itemsContainer
lazyItemsContainer
namedItemsContainer
stripsPanel
tbarPanel
textContentContainer
toolsPanel

CSS

bodyClsPanel
borderContainer
clsWidget
colorWidget
htmlClsWidget
itemClsContainer
styleWidget
uiPanel

Data

crudManagerSchedulerStores
crudManagerClassSchedulerStores
endParamNameSchedulerStores
resourceTimeRangesSchedulerStores
resourceTimeRangeStoreSchedulerStores
startParamNameSchedulerStores
timeRangesSchedulerStores
timeRangeStoreSchedulerStores

Dates

timeResolutionTimelineDateMapper

DOM

adoptWidget
appendToWidget
contentWidget
datasetWidget
htmlWidget
idWidget
tagWidget

Float & align

alignWidget
anchorWidget
centeredWidget
draggableWidget
floatingWidget
xWidget
yWidget

Infinite scroll

bufferCoefTimelineScroll
bufferThresholdTimelineScroll
infiniteScrollTimelineScroll

Layout

alignSelfWidget
autoHeightGridBase
dockWidget
flexWidget
getRowHeightGridBase
heightWidget
hiddenWidget
hideWhenEmptyContainer
layoutContainer
layoutStyleContainer
marginWidget
maxHeightWidget
maxWidthWidget
minHeightGridBase
minWidthWidget
textAlignWidget
weightWidget
widthWidget

Masking

loadMaskLoadMaskable
loadMaskDefaultsLoadMaskable
loadMaskErrorLoadMaskable
syncMaskLoadMaskable

misc

tabBarItemsContainer

Misc

cellEllipsisGridBase
columnLinesGridBase
dataFieldWidget
defaultRegionTimelineBase
destroyStoreGridBase
disabledWidget
enableStickyGridBase
enableUndoRedoKeysGridElementEvents
hideFootersGridBase
hideHeadersGridBase
hideRowHoverTimelineBase
hoverClsGridElementEvents
iconPanel
localeClassLocalizable
localizableLocalizable
longPressTimeGridElementEvents
maskDefaultsGridBase
maskedWidget
ownerWidget
pluginsPluggable
readOnlyGridBase
refWidget
responsiveLevelsGridResponsive
rippleWidget
rowLinesGridBase
showDirtyGridBase
tabWidget
timeZoneTimelineBase
titlePanel
tooltipWidget

Parent histogram data collecting

aggregateDataEntryTimelineHistogramGrouping
aggregateHistogramDataForGroupsTimelineHistogramGrouping
getDataEntryForAggregatingTimelineHistogramGrouping
initAggregatedDataEntryTimelineHistogramGrouping

Record

recordContainer

Resources

defaultResourceImageNameSchedulerResourceRendering
resourceColumnsSchedulerResourceRendering
resourceImageExtensionSchedulerResourceRendering
resourceImagePathSchedulerResourceRendering

Scale column

scaleColumnTimelineHistogramScaleColumn

Scheduled events

barMarginTimelineEventRendering
displayDateFormatTimelineViewPresets
enableRecurringEventsRecurringEvents
eventColorTimelineEventRendering
eventStyleTimelineEventRendering
fillTicksTimelineEventRendering
managedEventSizingTimelineEventRendering
resourceMarginSchedulerResourceRendering
snapTimelineDateMapper
tickSizeTimelineEventRendering

Scrolling

scrollableGridBase

Selection

selectionModeGridSelection

State

stateIdState

Time axis

autoAdjustTimeAxisTimelineBase
forceFitTimelineBase
partnerTimelineBase
stickyHeadersTimelineBase
suppressFitTimelineBase
timeAxisTimelineBase
weekStartDayTimelineBase
workingTimeTimelineBase

Tree

Zoom

maxZoomLevelTimelineZoomable
minZoomLevelTimelineZoomable
visibleZoomFactorTimelineZoomable
zoomOnMouseWheelTimelineZoomable

Properties

210

Common

columnsGridBase
dataGridBase
emptyTextGridBase
endDateTimelineBase
featuresGridFeatures
maxDateTimelineBase
minDateTimelineBase
presetsTimelineViewPresets
rowHeightGridBase
startDateTimelineBase
storeGridBase
subGridsGridSubGrids
viewPresetTimelineViewPresets
visibleDateTimelineBase

Class hierarchy

isResourceUtilization: Boolean= truereadonly
Identifies an object as an instance of ResourceUtilization class, or subclass thereof.
isResourceUtilization: Boolean= truereadonlystatic
Identifies an object as an instance of ResourceUtilization class, or subclass thereof.
isContainerContainer
isCrudManagerViewCrudManagerView
isDelayableDelayable
isEventsEvents
isGridGrid
isGridBaseGridBase
isGridElementEventsGridElementEvents
isGridFeaturesGridFeatures
isGridResponsiveGridResponsive
isGridSelectionGridSelection
isGridStateGridState
isGridSubGridsGridSubGrids
isKeyMapKeyMap
isLoadMaskableLoadMaskable
isLocalizableLocalizable
isPanelPanel
isPluggablePluggable
isRecurringEventsRecurringEvents
isResourceHistogramResourceHistogram
isSchedulerResourceRenderingSchedulerResourceRendering
isSchedulerStoresSchedulerStores
isStateState
isTimelineBaseTimelineBase
isTimelineDateMapperTimelineDateMapper
isTimelineDomEventsTimelineDomEvents
isTimelineEventRenderingTimelineEventRendering
isTimelineHistogramTimelineHistogram
isTimelineHistogramBaseTimelineHistogramBase
isTimelineHistogramGroupingTimelineHistogramGrouping
isTimelineHistogramScaleColumnTimelineHistogramScaleColumn
isTimelineScrollTimelineScroll
isTimelineStateTimelineState
isTimelineViewPresetsTimelineViewPresets
isTimelineZoomableTimelineZoomable
isToolableToolable
isWidgetWidget

Accessibility

keyMapKeyMap

Content

bbarPanel
tbarPanel

CSS

clsWidget

Data

crudManagerSchedulerStores
resourceTimeRangesSchedulerStores
resourceTimeRangeStoreSchedulerStores
timeRangesSchedulerStores
timeRangeStoreSchedulerStores

Dates

timelineContextTimelineDomEvents
timeResolutionTimelineDateMapper
viewportCenterDateTimelineDateMapper
visibleDateRangeTimelineBase

DOM

appendToWidget
contentWidget
datasetWidget
elementWidget
htmlWidget
idWidget
styleWidget

Float & align

xWidget
yWidget

Infinite scroll

infiniteScrollTimelineScroll

Layout

alignSelfWidget
bodyHeightGridBase
flexWidget
footerHeightGridBase
headerHeightGridBase
heightWidget
layoutContainer
layoutStyleContainer
marginWidget
maxHeightWidget
maxWidthWidget
minHeightWidget
minWidthWidget
widthWidget

Lifecycle

configBase

Misc

cellEllipsisGridBase
cellInfoWidget
columnLinesGridBase
disabledWidget
enableUndoRedoKeysGridElementEvents
hideFootersGridBase
hideHeadersGridBase
hideRowHoverTimelineBase
hoveredCellGridElementEvents
localeHelperLocalizable
localeManagerLocalizable
longPressTimeGridElementEvents
pluginsPluggable
readOnlyGridBase
refWidget
responsiveLevelGridResponsive
rowLinesGridBase
tabWidget
timeZoneTimelineBase
titlePanel
tooltipWidget

Other

$namestaticWidget
columnWidget
firstItemContainer
hasChangesContainer
histogramWidgetTimelineHistogramBase
isValidContainer
itemsContainer
labelPositionContainer
lastItemContainer
renditionContainer
resourceColumnsSchedulerResourceRendering
resourceColumnWidthSchedulerResourceRendering
rtlRTL
scalePointsTimelineHistogramScaleColumn
showBarTipTimelineHistogramBase
spanWidget
stateSettingsGridState
toolsPanel
transitionGridBase
typestaticWidget
valuesContainer

Record

recordContainer

Rows

Scale column

scaleColumnTimelineHistogramScaleColumn

Scheduled events

barMarginTimelineEventRendering
displayDateFormatTimelineViewPresets
eventColorTimelineEventRendering
eventColorsstaticTimelineEventRendering
eventStyleTimelineEventRendering
eventStylesstaticTimelineEventRendering
fillTicksTimelineEventRendering
hasVisibleEventsTimelineBase
resourceMarginSchedulerResourceRendering
snapTimelineDateMapper
tickSizeTimelineEventRendering

Scrolling

scrollLeftTimelineScroll
scrollTopTimelineScroll
scrollXTimelineScroll
timelineScrollerTimelineScroll

Selection

selectedCellGridSelection
selectedCellsGridSelection
selectedRecordGridSelection
selectedRecordsGridSelection
selectedRowsGridSelection
selectionModeGridSelection

State

stateGridState

Time axis

forceFitTimelineBase
partnersTimelineBase
suppressFitTimelineBase
timeAxisTimelineBase
timeAxisColumnTimelineBase
timeAxisSubGridTimelineBase
timeAxisViewModelTimelineBase
workingTimeTimelineBase

Tree

Visibility

hiddenWidget
isVisibleWidget

Widget hierarchy

ownerWidget
parentWidget
widgetMapContainer

Zoom

maxZoomLevelTimelineZoomable
minZoomLevelTimelineZoomable
zoomLevelTimelineZoomable

Functions

179

Other

The view store records wrap "real" resources and assignments. This method resolves a record to its original record resource or assignment. If the record does not wrap any record (happens for example for parent records when using TreeGroup feature) then the method returns the record itself.

ParameterTypeDescription
recordResourceUtilizationModel

The view store record

addContainer
addPartnerTimelineBase
aggregateHistogramDataTimelineHistogramGrouping
clearHistogramDataCacheTimelineHistogramBase
composeWidget
createOnFrameDelayable
disableWidget
enableWidget
focusWidget
formatDurationTimelineBase
getAtContainer
getBarTextDefaultResourceHistogram
getBarTextEffortUnitResourceHistogram
getEffortTextResourceHistogram
getHistogramDataCacheTimelineHistogramBase
getRecordAllocationDataResourceHistogram
getRecordHistogramDataTimelineHistogramBase
getWidgetByIdContainer
hasHistogramDataCacheTimelineHistogramBase
insertContainer
isPartneredWithTimelineBase
LstaticLocalizable
maskWidget
onEvents
preserveViewCenterTimelineBase
recomposeWidget
relayAllEvents
removeContainer
removeAllContainer
removePartnerTimelineBase
resetValuesContainer
scheduleRefreshRowsTimelineHistogramBase
setEndDateTimelineBase
setHistogramDataCacheTimelineHistogramBase
setStartDateTimelineBase
setTimeSpanTimelineBase
setValuesContainer
shiftTimelineZoomable
shiftNextTimelineZoomable
shiftPreviousTimelineZoomable
triggerEvents
unEvents
unmaskWidget
zoomToFitTimelineZoomable

Configuration

applyDefaultsstaticBase

Data

getOccurrencesForRecurringEvents

Dates

getCoordinateFromDateTimelineDateMapper
getDateFromCoordinateTimelineDateMapper
getDateFromDomEventTimelineDateMapper
getDateFromXYTimelineDateMapper
getTimeSpanDistanceTimelineDateMapper

Events

Float & align

alignToWidget
setXYWidget
showByWidget
toFrontWidget

Getters

getCellGridBase

Lifecycle

createstaticWidget
destroystaticBase
initClassstaticWidget

Misc

addPluginsPluggable
attachTooltipstaticWidget
fromElementstaticWidget
fromSelectorstaticWidget
getByIdstaticWidget
getPluginPluggable
hasFeatureGridFeatures
hasPluginPluggable
highlightEventsTimelineBase
isOfTypeNamestaticBase
maskBodyGridBase
mixinstaticBase
optionalLstaticLocalizable
unhighlightEventsTimelineBase
unmaskBodyGridBase

Parent histogram data collecting

aggregateAllocationEntryResourceHistogram
aggregateRecordsHistogramDataTimelineHistogramGrouping
getGroupRecordHistogramDataTimelineHistogramGrouping

Rendering

refreshRowGridBase
refreshRowsGridBase
renderRowsGridBase

Rows

getRowForGridBase

Scale column

generateScalePointsResourceHistogram
renderRecordScaleTimelineHistogramScaleColumn

Scrolling

scrollHorizontallyToTimelineScroll
scrollToTimelineScroll
scrollToDateTimelineScroll
scrollToNowTimelineScroll
scrollToTopGridBase
scrollVerticallyToTimelineScroll
storeScrollGridBase

Selection

deselectAllGridSelection
deselectCellGridSelection
deselectCellsGridSelection
deselectRowGridSelection
deselectRowsGridSelection
isCellSelectedGridSelection
isSelectableGridSelection
isSelectedGridSelection
selectAllGridSelection
selectCellGridSelection
selectCellRangeGridSelection
selectCellsGridSelection
selectRangeGridSelection
selectRowGridSelection
selectRowsGridSelection

State

SubGrid

getSubGridGridSubGrids

Visibility

hideWidget
showWidget

Widget hierarchy

closestWidget
containsWidget
ownsWidget
queryWidget
queryAllWidget
upWidget

Zoom

zoomInTimelineZoomable
zoomInFullTimelineZoomable
zoomOutTimelineZoomable
zoomOutFullTimelineZoomable
zoomToTimelineZoomable
zoomToLevelTimelineZoomable
zoomToSpanTimelineZoomable

Events

65
beforeAssignmentDeleteRecurringEvents
beforeEventDeleteRecurringEvents
beforeHistogramDataCacheSetTimelineHistogramBase
beforePresetChangeTimelineViewPresets
beforeRenderHistogramRowTimelineHistogramBase
beforeRenderRecordHistogramTimelineHistogramBase
catchAllEvents
cellClickGridElementEvents
cellContextMenuGridElementEvents
cellDblClickGridElementEvents
cellMouseEnterGridElementEvents
cellMouseLeaveGridElementEvents
cellMouseOutGridElementEvents
cellMouseOverGridElementEvents
dataChangeGridBase
dateRangeChangeTimelineBase
destroyEvents
dragSelectingGridSelection
expandPanel
focusInWidget
focusOutWidget
generateScalePointsResourceHistogram
headerClickGridElementEvents
hideWidget
histogramDataCacheSetTimelineHistogramBase
mouseOutGridElementEvents
mouseOverGridElementEvents
noZoomChangeTimelineZoomable
paintWidget
presetChangeTimelineViewPresets
readOnlyWidget
recomposeWidget
renderRowGridBase
renderRowsGridBase
resizeWidget
responsiveGridResponsive
rowMouseEnterGridElementEvents
rowMouseLeaveGridElementEvents
scrollGridBase
selectionChangeGridSelection
selectionModeChangeGridSelection
showWidget
tickSizeChangeTimelineEventRendering
timeAxisChangeTimelineBase
timeAxisHeaderClickTimelineDomEvents
timeAxisHeaderContextMenuTimelineDomEvents
timeAxisHeaderDblClickTimelineDomEvents
timelineContextChangeTimelineDomEvents

Event handlers

65
onBeforeEventDeleteRecurringEvents
onBeforeHistogramDataCacheSetTimelineHistogramBase
onBeforePresetChangeTimelineViewPresets
onBeforeRenderHistogramRowTimelineHistogramBase
onBeforeRenderRecordHistogramTimelineHistogramBase
onCellClickGridElementEvents
onCellContextMenuGridElementEvents
onCellDblClickGridElementEvents
onCellMouseEnterGridElementEvents
onCellMouseLeaveGridElementEvents
onCellMouseOutGridElementEvents
onCellMouseOverGridElementEvents
onDataChangeGridBase
onDateRangeChangeTimelineBase
onDestroyEvents
onDragSelectingGridSelection
onFocusInWidget
onGenerateScalePointsResourceHistogram
onHeaderClickGridElementEvents
onHideWidget
onHistogramDataCacheSetTimelineHistogramBase
onMouseOutGridElementEvents
onMouseOverGridElementEvents
onNoZoomChangeTimelineZoomable
onPaintWidget
onPresetChangeTimelineViewPresets
onRenderRowGridBase
onRenderRowsGridBase
onResizeWidget
onResponsiveGridResponsive
onRowMouseEnterGridElementEvents
onRowMouseLeaveGridElementEvents
onScrollGridBase
onSelectionChangeGridSelection
onShowWidget
onTickSizeChangeTimelineEventRendering
onTimeAxisChangeTimelineBase
onTimeAxisHeaderClickTimelineDomEvents
onTimeAxisHeaderDblClickTimelineDomEvents
onTimelineContextChangeTimelineDomEvents

Typedefs

21

ResourceUtilization renderer parameters.

ParameterTypeDescription
histogramDataObject

Histogram data

histogramConfigHistogramConfig

Configuration object for the histogram widget

cellElementHTMLElement | null

Cell element, for adding CSS classes, styling etc. Can be null in case of export

recordResourceModel

Record for the row

columnTimeAxisColumn

Owning TimeAxisColumn column

gridResourceUtilization

Owning ResourceUtilization instance

rowRow

Row object. Can be null in case of export. Use the row's API to manipulate CSS class names.

AlignSpecWidget
ChangePresetOptionsTimelineZoomable
ColorWidget
ColumnStateGridState
GridSelectionModeGridSelection
GridStateInfoGridState
HistogramRenderDataTimelineHistogramBase
ResponsiveLevelConfigGridResponsive
SubGridStateGridState
TimelineStateInfoTimelineState
VisibleDateTimelineBase

CSS variables

119
NameDescription
--b-resource-utilization-bar-legend-font-sizeBar legend font size
--b-resource-utilization-resource-bar-legend-font-sizeResource bar legend font size
--b-resource-utilization-assignment-bar-legend-font-sizeAssignment bar legend font size
--b-resource-utilization-bar-legend-text-colorBar legend text fill (SVG text)
--b-resource-utilization-bar-colorDefault bar color
--b-resource-utilization-underallocated-bar-colorUnder-allocated bar color
--b-resource-utilization-underallocated-text-colorUnder-allocated text color
--b-resource-utilization-overallocated-bar-colorOver-allocated bar color
--b-resource-utilization-overallocated-text-colorOver-allocated text color
--b-resource-utilization-resource-bar-legend-text-colorResource bar legend text fill (SVG text)
--b-resource-utilization-resource-bar-colorDefault resource bar color
--b-resource-utilization-resource-overallocated-bar-colorResource over-allocated bar color
--b-resource-utilization-resource-overallocated-text-colorResource over-allocated text color
--b-resource-utilization-resource-underallocated-bar-colorResource under-allocated bar color
--b-resource-utilization-resource-underallocated-text-colorResource under-allocated text color
--b-resource-utilization-assignment-bar-legend-text-colorAssignment bar legend text fill (SVG text)
--b-resource-utilization-assignment-bar-colorDefault assignment bar color
--b-resource-utilization-assignment-overallocated-bar-colorAssignment over-allocated bar color
--b-resource-utilization-assignment-underallocated-bar-colorAssignment under-allocated bar color
Hovered
--b-resource-utilization-bar-hover-colorDefault bar hover color
--b-resource-utilization-underallocated-bar-hover-colorUnder-allocated bar hover color
--b-resource-utilization-overallocated-bar-hover-colorOver-allocated bar hover color
--b-resource-utilization-resource-bar-hover-colorDefault resource bar hover color
--b-resource-utilization-resource-overallocated-bar-hover-colorResource over-allocated bar hover color
--b-resource-utilization-resource-underallocated-bar-hover-colorResource under-allocated bar hover color
--b-resource-utilization-assignment-bar-hover-colorDefault assignment bar hover color
--b-resource-utilization-assignment-overallocated-bar-hover-colorAssignment over-allocated bar hover color
--b-resource-utilization-assignment-underallocated-bar-hover-colorAssignment under-allocated bar hover color