BarChart
Bar chart panel - categorical bar charts.
Use for comparing discrete categories.
<BarChart title="Requests by Endpoint" orientation="horizontal" stack="normal"> sum by (endpoint) (http_requests_total)</BarChart>| Prop | Type | Default | Description |
|---|---|---|---|
unit | Unit | - | Display unit |
decimals | number | - | Decimal places |
thresholds | ThresholdSpec | - | Threshold configuration |
xField | string | - | X Axis field |
orientation | 'auto' | 'horizontal' | 'vertical' | - | Orientation |
stack | 'off' | 'normal' | 'percent' | - | Stacking mode |
showValue | 'auto' | 'always' | 'never' | - | Show values on bars |
barWidth | number | - | Bar width percentage (0-1) |
groupWidth | number | - | Group width percentage (0-1) |
fill | number | - | Fill opacity (0-100) |
gradientMode | 'none' | 'opacity' | 'hue' | 'scheme' | - | Gradient mode for bars |
legend | LegendConfig | LegendPlacement | - | Legend configuration |
colorMode | ColorMode | - | Color mode |
overrides | OverrideConfig[] | - | Field overrides |
Inherits from BasePanelProps