TimelineHistogramBase
Abstract
Base class for TimelineHistogram class. Provides core histogram rendering, series management, and tooltip generation. Not to be used directly.
See also
- TimelineHistogram - Concrete histogram view
- TimelineBase - Timeline base class
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
When set to
true(default) the component reacts on time axis changes (zooming or changing the displayed time span), clears the histogram data cache of the records and then refreshes the view. -
An instance or a configuration object of the underlying Histogram component that is used under the hood to render actual charts. In case a configuration object is provided the built class is defined with histogramWidgetClass config.
Has a corresponding runtime histogramWidget property.
-
The class used for building the histogram widget
-
Set to
trueif you want to display a tooltip when hovering an allocation bar. You can also pass a Tooltip#configs config object. Please use barTooltipTemplate function to customize the tooltip contents.Has a corresponding runtime showBarTip property.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of TimelineHistogramBase class, or subclass thereof.
-
The underlying Histogram component that is used under the hood to render actual charts.
Has a corresponding histogramWidget config.
-
Set to
trueif you want to display a tooltip when hovering an allocation bar. You can also pass a Tooltip#configs config object. Please use barTooltipTemplate function to customize the tooltip contents.Has a corresponding showBarTip config.
-
Identifies an object as an instance of TimelineHistogramBase class, or subclass thereof.
Functions
Functions are methods available for calling on the class-
beforeAnimatedRowRemoval( )internal
Called by RowManager before animated row removal (collapse). Marks histogram
<g>groups for the affected record IDs so they can be animated out instead of instantly removed. -
createZoomGhost( )private
Clones the histogram canvas into a ghost overlay for cross-fade on zoom end.
-
enableHistogramTransitions( )internal
Temporarily enables CSS transitions on the histogram canvas for data-driven changes. Uses Widget's
isAnimatingAPI which toggles theb-animatingCSS class on the view element. Transitions are disabled by default (scroll/zoom shouldn't animate). -
fadeOutZoomGhost( )private
Fades out and removes the ghost canvas, revealing recalculated content underneath.
-
onHistogramBarDomSync( )internal
DomSync callback for histogram bar elements. Handles exit transitions — adds the
b-removingCSS class to trigger the exit animation, then removes the element after the transition completes. Only active whenisAnimatingis true (data changes, not zoom/scroll). -
onHistogramGroupDomSync( )internal
DomSync callback for histogram
<g>row groups during tree toggle animation. Handles animated removal of collapsing groups and animated addition of expanding groups. -
onRowManagerRenderDone( )internal
Called after RowManager finishes rendering a batch of rows. Builds a single domConfig tree for the entire canvas and syncs it in one DomSync pass.
-
removeZoomGhost( )private
Immediately removes the ghost canvas without animation.
-
Schedules the component rows refresh on the next animation frame. However many time it is called in one event run, it will only be scheduled to run once.
-
syncRowGroupPositions( )internal
Syncs all SVG row group positions to match current row positions. Called on vertical scroll because row positions change silently during virtual scroll recycling. Re-runs the full canvas DomSync with updated transforms.