Open LamsaLL opened 2 years ago
When we set legendDefaultMesaure different than none and we want to toggle show\hide series on legend we got this error :
legendDefaultMesaure
Here is the code of my graph :
class GroupedBarChart extends StatelessWidget { final List<charts.Series<dynamic, String>> seriesList; const GroupedBarChart({Key? key, required this.seriesList}) : super(key: key); @override Widget build(BuildContext context) { return charts.BarChart(seriesList, animate: true, barGroupingType: charts.BarGroupingType.grouped, behaviors: [ charts.SeriesLegend( position: charts.BehaviorPosition.top, horizontalFirst: true, cellPadding: const EdgeInsets.only(right: 16), showMeasures: true, legendDefaultMeasure: charts.LegendDefaultMeasure.sum, measureFormatter: (num? value) { return value == null ? '-' : value.round().toString(); }), ]); } }
did you get to fix it?
When we set
![bug-hide-series-on-legend](https://user-images.githubusercontent.com/56052339/180231669-7ea2b7a9-457f-4bc9-b98e-7f709f9dc23b.png)
legendDefaultMesaure
different than none and we want to toggle show\hide series on legend we got this error :Here is the code of my graph :