yAxis.setValueFormatter(new MyValueFormatter()); // usage on whole data object lineDataSet.setValueFormatter(new MyValueFormatter());