Skip to content

Commit

Permalink
[Presentation] Minor fix to the gender chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Oct 30, 2022
1 parent 1eada2f commit 2e62458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/presentation/charts/charts_page.dart
Expand Up @@ -750,7 +750,7 @@ class _Genders extends StatelessWidget {
loaded: (state) => state.genders.isEmpty
? NothingFoundColumn(msg: s.nothingToShow)
: VerticalBarChart(
items: state.genders.mapIndex((e, i) => VerticalBarDataModel(i, theme.colorScheme.primary, e.regionType.index, 0)).toList(),
items: state.genders.mapIndex((e, i) => VerticalBarDataModel(i, theme.colorScheme.primary, i, 0)).toList(),
maxY: state.maxCount.toDouble(),
interval: (state.maxCount * 0.2).roundToDouble(),
tooltipColor: _tooltipColor,
Expand Down

0 comments on commit 2e62458

Please sign in to comment.