charts - charts_flutter labels/text on x-axis overlapping each other - Stack Overflow

PHOTO EMBED

Tue May 24 2022 20:56:04 GMT+0000 (UTC)

Saved by @salim #dart #flutter

BarChart(
    ...
    domainAxis: charts.OrdinalAxisSpec(
              renderSpec: charts.SmallTickRendererSpec(labelRotation: 60),
       ),
 ),
content_copyCOPY

this work on flutter_chartbar when (x) values are overlapping each other so this trick will rotate the text 45* i guess to make it visible.

https://stackoverflow.com/questions/54437448/charts-flutter-labels-text-on-x-axis-overlapping-each-other