The Pie Chart component renders as a circular chart that depicts data values as sections. When clicked, it produces a ChartClickEvent with data about what was clicked so the system can process the click as required.
It produces events of the following types:
Slices: pie chart sections (a list of slices displayed in the pie chart)
The slices define their label and value: the Slice value is defined as a decimal value and represents the mutual ratio of individual slices.
collect( getCurrentAssets(), {asset -> new ui::PieSlice( label -> asset.ISIN, value -> asset.currentAmount) } )