Skip to main content

BarStyleAccessor

@elastic/chartsExports


@elastic/charts / BarStyleAccessor

Type alias: BarStyleAccessor

BarStyleAccessor: (datum, seriesIdentifier) => BarStyleOverride

Override for bar styles per datum

Return types:

  • Color: Color value as a string will set the bar fill to that color
  • RecursivePartial<BarSeriesStyle>: Style values to be merged with base bar styles
  • null: Keep existing bar style

Parameters

datum: DataSeriesDatum

seriesIdentifier: XYChartSeriesIdentifier

Returns

BarStyleOverride

Source

packages/charts/src/chart_types/xy_chart/utils/specs.ts:91


Generated using typedoc-plugin-markdown and TypeDoc