Updated graph displayment
This commit is contained in:
@@ -34,17 +34,29 @@ class _GraphViewState extends State<GraphView> {
|
|||||||
? Padding(
|
? Padding(
|
||||||
padding: const EdgeInsets.fromLTRB(0, 100, 0, 0),
|
padding: const EdgeInsets.fromLTRB(0, 100, 0, 0),
|
||||||
child: SfCartesianChart(
|
child: SfCartesianChart(
|
||||||
|
enableAxisAnimation: true,
|
||||||
legend: const Legend(
|
legend: const Legend(
|
||||||
overflowMode: LegendItemOverflowMode.wrap,
|
overflowMode: LegendItemOverflowMode.wrap,
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
position: LegendPosition.bottom),
|
position: LegendPosition.bottom),
|
||||||
primaryXAxis: const NumericAxis(
|
primaryXAxis: const NumericAxis(
|
||||||
|
labelStyle: TextStyle(fontWeight: FontWeight.bold),
|
||||||
interval: 1,
|
interval: 1,
|
||||||
decimalPlaces: 0,
|
decimalPlaces: 0,
|
||||||
),
|
),
|
||||||
primaryYAxis: const NumericAxis(
|
primaryYAxis: NumericAxis(
|
||||||
|
labelStyle: const TextStyle(fontWeight: FontWeight.bold),
|
||||||
|
labelAlignment: LabelAlignment.center,
|
||||||
|
labelPosition: ChartDataLabelPosition.inside,
|
||||||
interval: 1,
|
interval: 1,
|
||||||
decimalPlaces: 0,
|
decimalPlaces: 0,
|
||||||
|
axisLabelFormatter: (AxisLabelRenderDetails details) {
|
||||||
|
if (details.value == 0) {
|
||||||
|
return ChartAxisLabel('', const TextStyle());
|
||||||
|
}
|
||||||
|
return ChartAxisLabel(
|
||||||
|
'${details.value.toInt()}', const TextStyle());
|
||||||
|
},
|
||||||
),
|
),
|
||||||
series: getCumulativeScores(),
|
series: getCumulativeScores(),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ name: cabo_counter
|
|||||||
description: "Mobile app for the card game Cabo"
|
description: "Mobile app for the card game Cabo"
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 0.4.7+520
|
version: 0.4.7+521
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.5.4
|
sdk: ^3.5.4
|
||||||
|
|||||||
Reference in New Issue
Block a user