It would be great to have the possibility to format labels through a callback,
something like this
GraphView graphView = new LineGraphView(this, "example") {
@Override
protected String formatLabel(double value, boolean isValueX) {
if (isValueX) {
// convert unix time to human time
return dateTimeFormatter.format(new Date((long) value*1000));
} else return super.formatLabel(value, isValueX); // let the y-value be normal-formatted
}
};
Original issue reported on code.google.com by stef.ba...@gmail.com on 25 Dec 2012 at 10:56
Original issue reported on code.google.com by
stef.ba...@gmail.com
on 25 Dec 2012 at 10:56