Do you need a tag instead of these values ?
If so, then there is a way to do this.
Add your XAxis shortcuts to ArrayList
final ArrayList<String> xLabel = new ArrayList<>(); xLabel.add("9"); xLabel.add("15"); xLabel.add("21"); xLabel.add("27"); xLabel.add("33");
then use this label in setValueFormatter .
An example :
XAxis xAxis = mChart.getXAxis(); xAxis.setPosition(XAxis.XAxisPosition.BOTTOM); xAxis.setDrawGridLines(false); xAxis.setValueFormatter(new IAxisValueFormatter() { @Override public String getFormattedValue(float value, AxisBase axis) { return xLabel.get((int)value); } });
Result :

Prabs
source share