PieChart
Pie chart panel - pie/donut charts.
Use for showing parts of a whole.
<PieChart title="Traffic by Service" pieType="donut" labels={['name', 'percent']}> sum by (service) (http_requests_total)</PieChart>| Prop | Type | Default | Description |
|---|---|---|---|
unit | Unit | - | Display unit |
decimals | number | - | Decimal places |
pieType | 'pie' | 'donut' | - | Pie chart type |
legend | LegendConfig | LegendPlacement | false | - | Show legend |
labels | ('name' | 'value' | 'percent')[] | - | Labels to show |
colorMode | ColorMode | - | Color mode |
reduceCalc | 'lastNotNull' | 'mean' | 'sum' | 'max' | 'min' | - | Reduce calculation |
Inherits from BasePanelProps