Skip to main content

BarSeries Spec

Defines a bar series in the chart.

Overview

Compatible Specs

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

Global Specs

Specs

Overrides

  • seriesType -> SeriesType.Bar

Props

All props can be found via BarSeriesProps type.

BasicSeriesSpec Props

Inherits BasicSeriesSpec props

Postfixes Props

Inherits Postfixes props

enableHistogramMode

  • Type: enableHistogramMode?: boolean
  • Default: false

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).