Pie Chart
Representing each category as a slice of the pie, where the size of each slice is proportional to its value.
PieChart
Defines the overall structure of a pie chart component within a report.
id
- A literal string with the value "pie", identifying the component as a pie chart.title
- An optional string representing the title of the pie chart.data
- An instance ofPieChartData
, representing the data to be visualized in the pie chart.
PieChartData
Defines an array of objects, where each object represents a category and its associated value for the pie chart.
category
- A string representing the name of the category.value
- A number representing the value associated with the category. The number must be greater than or equal to 0.
Example
{
"id": "pie",
"title": "App Downloads by Country",
"data": [
{
"category": "Croatia",
"value": 60
},
{
"category": "Slovenia",
"value": 40
},
]
}