|
|
|
|
@ -114,21 +114,21 @@ class ShowChart extends StatelessWidget {
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
),
|
|
|
|
|
rotateAngle: -65,
|
|
|
|
|
margin: 22,
|
|
|
|
|
margin: 8,
|
|
|
|
|
getTitles: (value) {
|
|
|
|
|
if (isWeeklyOrMonthly) {
|
|
|
|
|
return '${timeSeries[value.toInt()].time.day}/ ${timeSeries[value.toInt()].time.month}';
|
|
|
|
|
} else {
|
|
|
|
|
if (timeSeries.length < 15) {
|
|
|
|
|
if (timeSeries.length > value.toInt()) {
|
|
|
|
|
return '${timeSeries[value.toInt()].time.month}/ ${timeSeries[value.toInt()].time.year}';
|
|
|
|
|
return '${timeSeries[value.toInt()].time.day}/${timeSeries[value.toInt()].time.month}/${timeSeries[value.toInt()].time.year.toString().substring(2,4)}';
|
|
|
|
|
} else
|
|
|
|
|
return '';
|
|
|
|
|
} else {
|
|
|
|
|
if (value.toInt() == 0) return '${timeSeries[value.toInt()].time.month}/ ${timeSeries[value.toInt()].time.year}';
|
|
|
|
|
if (value.toInt() == timeSeries.length - 1) return '${timeSeries[value.toInt()].time.month}/ ${timeSeries[value.toInt()].time.year}';
|
|
|
|
|
if (value.toInt() == 0) return '${timeSeries[value.toInt()].time.day}/${timeSeries[value.toInt()].time.month}/${timeSeries[value.toInt()].time.year.toString().substring(2,4)}';
|
|
|
|
|
if (value.toInt() == timeSeries.length - 1) return '${timeSeries[value.toInt()].time.day}/${timeSeries[value.toInt()].time.month}/${timeSeries[value.toInt()].time.year.toString().substring(2,4)}';
|
|
|
|
|
if (xAxixs.contains(value.toInt())) {
|
|
|
|
|
return '${timeSeries[value.toInt()].time.month}/ ${timeSeries[value.toInt()].time.year}';
|
|
|
|
|
return '${timeSeries[value.toInt()].time.day}/${timeSeries[value.toInt()].time.month}/${timeSeries[value.toInt()].time.year.toString().substring(2,4)}';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return '';
|
|
|
|
|
|