i have a chart and sometimes, the ordonate overlaps the min or/and the max value

Can this be avoided?
Thx
i have a chart and sometimes, the ordonate overlaps the min or/and the max value

Can this be avoided?
Thx
You can avoid this by checking if the value is the same as the max or min Y value using the "meta" parameter in your "getTitlesWidget" function.
Widget getTitlesWidget(double value, TitleMeta meta) {
if (value == meta.max) {
return const Text('');
} else if (value == meta.min) {
return const Text('');
}
return Text('$value');
}