Closed Tobbyte closed 4 months ago
still not sure why this problem exists in the first place (maybe the interval < 1 exists for auto scaling? 🤷♂️) Anyway, the solution is simple:
getTitlesWidget
if (interval < 1) {
return const SizedBox.shrink();
}
first: thanks for your awesome work! Much appreciated!
Came across a strange behavior when showing close minX and maxX values: at some point the calculated interval goes < 1 and more titles than datapoints get shown.
for
all good - one title per data point (
meta.appliedInterval
is 1) :but
more titles than datapoints (
meta.appliedInterval
is 0.5)?Versions Flutter: 3.19.6 fl_chart: ^0.68.0
min example: