AJJ
AJJ

Reputation: 2074

Overlapping data labels (MPAndroidChart)

If I have a lot of values with close values, the data labels overlap. For example this sequence of 14's:

enter image description here

Is there a way to de-clutter this somehow or "hide" labels that contribute to the clutter?

Upvotes: 1

Views: 4367

Answers (2)

Alexander Ivanov
Alexander Ivanov

Reputation: 140

For version 3.x you can try xAxis.setLabelCount(4), but in your case may be better is xAxis.setGranularity(1f)

Upvotes: 5

deepan
deepan

Reputation: 124

xAxis.setLabelsToSkip(5) it will skip five label. automatic lab

Upvotes: 2

Related Questions