You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@atta1234 You can simply assign a new map to dataMap on setstate. The pie chart would automatically update itself upon changing data map
onPressed: () async {
setState(() {
Map<String, double> dataMap = {
"Income": 75,
"Expenditure": 25,
};
this.dataMap=dataMap; // This line would cause your data map field variable to update
});
},
this how i defined the pie chart map, when page load i want to set the values,0
then on button press, i want update the chart value,
How to solve this issue?
The text was updated successfully, but these errors were encountered: