2

I'm trying to set the range value format (Y-axis) of my plot to not show any decimals. In versions prior to 1.x you could apparently set the format by using plot.setRangeValueFormat(new DecimalFormat("#")); but this method is not available in the newest version.

How can I do this in the newest version of AndroidPlot?

Thanks in advance!

1 Answer 1

2

In 1.x you'd do this:

plot.getGraph().getLineLabelStyle(XYGraphWidget.Edge.LEFT).setFormat(new DecimalFormat("#"));

For background, the change in 1.x was part of a larger set of changes to enable support for arbitrarily applying labels on any of the 4 edges of the screen, as opposed to only the bottom and left edges.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.