Skip to main content

HistogramBarSeries Spec

This spec describe the dataset configuration used to display a histogram bar series. This is identical to the BarSeries but overrides enableHistogramMode to true.

A histogram bar series is identical to a bar series except for the bar width.

Overview

Compatible Specs

HistogramBarSeries spec can be used multiple times along with any of the following specs:

Global Specs

Specs

Overrides

  • enableHistogramMode -> true

Props

All props can be found via HistogramBarSeriesProps type.

BarSeriesSpec Props

Inherits BarSeriesSpec props

barSeriesStyle

Styles to apply to bar series. Overrides syles from Theme

stackMode

  • Type: stackMode?: StackMode
  • Default: '100%'

Stack each series using a specific mode: Percentage, Wiggle, Silhouette. The last two modes are generally used for stream graphs

styleAccessor

Functional accessor to return custom color or style for bar datum

minBarHeight

  • Type: minBarHeight?: number
  • Unit: pixel

Min height to render bars for highly variable data (i.e. ranges from 1 to 100,000).