Skip to content

HBar

const HBar: ForwardRefExoticComponent<HBarComponentProps & RefAttributes<ChartRef>>

Defined in: index.tsx:350

Horizontal bar chart React component.

Mapping: x is the categorical label field, y is the numeric value field.

Example

<HBar data={traffic} mapping={{ x: 'source', y: 'visits' }} theme="midnight" />