TimelineKit API
    Preparing search index...

    Class HistogramData

    Central data store holding all resources and allocations for the histogram.

    Index

    Constructors

    Properties

    allocationAdded$: Subject<HistogramAllocationEventArgs> = ...

    Emitted when an allocation is added.

    allocationChanged$: Subject<HistogramAllocationEventArgs> = ...

    Emitted when an allocation property changes.

    allocationRemoved$: Subject<HistogramAllocationEventArgs> = ...

    Emitted when an allocation is removed.

    complexOperationFinished$: Subject<void> = ...

    Emitted after a bulk operation completes.

    filterChanged$: Subject<void> = ...

    Emitted when the resource filter changes.

    resourceAdded$: Subject<HistogramResourceEventArgs> = ...

    Emitted when a resource is added.

    resourceChanged$: Subject<HistogramResourceEventArgs> = ...

    Emitted when a resource property changes.

    resourceRemoved$: Subject<HistogramResourceEventArgs> = ...

    Emitted when a resource is removed.

    Accessors

    Methods

    • Compute the aggregate utilization across all visible resources in a time bucket. Returns the sum of each resource's utilization in the bucket.

      Parameters

      • bucketStart: Date
      • bucketEnd: Date

      Returns number

    • Compute the total utilization for a resource in a time bucket. Returns a percentage value — 100 means 100% allocated. Partial overlap is weighted proportionally.

      Parameters

      • resourceId: string
      • bucketStart: Date
      • bucketEnd: Date

      Returns number