Closed ruchinraja closed 3 weeks ago
Hi @ruchinraja . The given exmaple in documentation is just code to show how onPieClick works and what it can be used for. As you see , the data is not even in variable. But thank you for reporting that, i will fix that to avoid confusion.
In the given PieChart example from the documentation, the onPieClick function is not working correctly. To fix this issue, you should use rememberMutableStateOf instead of remember for the list of Pie items. This allows the data to be mutable, so it can be updated when a pie slice is clicked.
Replace
With