I have a long string as a label so my labels overlap. It would look good if I reduce the no of labels or set the spacing between labels. I couldn't find any related to that issue. pl reply Asap
+1
In my case 30 data points with dates (2016-12-12) on a Nexus 5X.
Hi..
I solved it with this
XAxis xAxis=chart.getXAxis();
xAxis.setLabelCount(4,true);
Just reduce the label count
Let me know whether it helped @sebastiande
The above mentioned works, but only if the data are numbers/dates. If your data is series (for example, strings such as "Apple", "Orange", "Banana"), then only 4 of those string values would be seen. The rest would only show up if user zooms in the graph. But, when a user looks at this graph, he has no idea that there are more values there, he just sees 4 fruits and nothing else.
@dxshindeo then make the graph extend off the screen by restricting the view port
Most helpful comment
Hi..
I solved it with this
XAxis xAxis=chart.getXAxis();
xAxis.setLabelCount(4,true);
Just reduce the label count
Let me know whether it helped @sebastiande