I'm using GraphView library to create graph on my android application and I having problem with my horizontal (X) axis labels. As you can see here there is problem with the numbers labels in the X axis, the numbers are hovering each other and I'm willing to use padding to avoid that.
Though after long researches online I have not found any answers.
Here is my graph design code:
GraphView graph = (GraphView) findViewById(R.id.graph);
LineGraphSeries<DataPoint> series = new LineGraphSeries<>(getDataPoint());
GridLabelRenderer gridLabel = graph.getGridLabelRenderer();
gridLabel.setHumanRounding(true);
gridLabel.setNumHorizontalLabels(this.numberAxis);
gridLabel.setHorizontalAxisTitle(getApplicationContext().getString(R.string.updates));
gridLabel.setLabelHorizontalHeight(50);
gridLabel.setVerticalAxisTitle(getApplicationContext().getString(R.string.weight));
graph.addSeries(series);
How can I avoid hovering of the horizontal axis labels on each other?