Androidplot: How can have integer data labels? -
this simple, cannot find in online documentation. have data plot integer range values on floating point domain (integer function of time). using
plot.setrangevalueformat(new decimalformat("#"));
i obtain integer labels on side of graph. still 1 decimal place in label on data points instead of integers, e.g. "100.0". how can obtain integer values only, e.g. "100" ?
for me works this:
if want data floating point—i.e.,
100.0
—then delete lineplot.setrangevalueformat(new decimalformat("#"));
code.if want integer data—i.e.,
100
—then keep (include) lineplot.setrangevalueformat(new decimalformat("#"));
in code.
Comments
Post a Comment