How to create and configure the Pie chart
.sql
file that the Pie Chart accepts must contain only 2 columns, one for the labels and another one for the values.
type | count |
---|---|
MOVIE | 3309 |
SHOW | 1967 |
PieChart
or QueryPieChart
to visualize query results in a chart.
Use QueryPieChart when you want the component to automatically handle the query fetching.
Use PieChart when you already fetched the data using useQuery.
showHole
property is true allow to show the total sum of the values.