Skip to main content

Props API

PieChartQueryProps
PieChart query props
PieChartVariant
The variant the chart will respond to, can be either pie or doughnut.
boolean
When true, shows a skeleton loader
string
Time zone to use (for example, “America/Los_Angeles”, “Europe/Berlin”, or “UTC”). Defaults to the client’s local time zone
string[]
If passed along with rows the component will ignore the built-in GraphQL operations.
string[][]
If passed along with headers the component will ignore the built-in GraphQL operations.
ChartProps
Optional props that are used to configure the chart component.
string
Provides className to style label list of chart.
(AccentColors | string)[]
A list of accent colors the PieChart component will use, those will be picked in order
GrayColors | string
Color that will be used for other
boolean
If set to true, shows the other slice of the pie chart, defaults to true
(config: ChartConfiguration<"pie" | "doughnut">) => ChartConfiguration<"pie" | "doughnut">
An optional prop that provides access to the Chart.js API, allowing for further customization of chart settings.