Skip to content

Too many values in X and Y axis. How To lessen them. #1250

Closed Answered by Bazni
chitgoks asked this question in Q&A
Discussion options

You must be logged in to vote

Hey,

You can change the interval for each SideTitle.

Little example for the bottomTitles field:

bottomTitles: AxisTitles(
            sideTitles: SideTitles(
              reservedSize: 30,
              showTitles: true,
              interval: 1, // Change this 
              getTitlesWidget: (value, meta) => bottomTitleBuilder(value),
            ),
          )

IMO your problem is that you display a Text too big for the available space. Try to change the reservedSize and display a fixed length float with double.toStringAsFixed(x); or even better NumberFormat

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by imaNNeo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants