|
|
|
@ -115,6 +115,7 @@ class LineChartCurved extends StatelessWidget {
|
|
|
|
//rotateAngle:-65,
|
|
|
|
//rotateAngle:-65,
|
|
|
|
margin: 22,
|
|
|
|
margin: 22,
|
|
|
|
getTitles: (value) {
|
|
|
|
getTitles: (value) {
|
|
|
|
|
|
|
|
if (timeSeries.length < 15) {
|
|
|
|
if (timeSeries.length > value.toInt()) {
|
|
|
|
if (timeSeries.length > value.toInt()) {
|
|
|
|
DateTime dateTime = timeSeries[value.toInt()].time;
|
|
|
|
DateTime dateTime = timeSeries[value.toInt()].time;
|
|
|
|
if (isDatesSameYear) {
|
|
|
|
if (isDatesSameYear) {
|
|
|
|
@ -125,6 +126,19 @@ class LineChartCurved extends StatelessWidget {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return '';
|
|
|
|
return '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (value.toInt() == 0 ||
|
|
|
|
|
|
|
|
value.toInt() == timeSeries.length - 1 ||
|
|
|
|
|
|
|
|
xAxixs.contains(value.toInt())) {
|
|
|
|
|
|
|
|
DateTime dateTime = timeSeries[value.toInt()].time;
|
|
|
|
|
|
|
|
if (isDatesSameYear) {
|
|
|
|
|
|
|
|
return monthFormat.format(dateTime);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return yearFormat.format(dateTime);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*if (timeSeries.length < 15) {
|
|
|
|
/*if (timeSeries.length < 15) {
|
|
|
|
if (timeSeries.length > value.toInt()) {
|
|
|
|
if (timeSeries.length > value.toInt()) {
|
|
|
|
DateTime dateTime = timeSeries[value.toInt()].time;
|
|
|
|
DateTime dateTime = timeSeries[value.toInt()].time;
|
|
|
|
|