1

I am using LineChart for plotting realtime data. I need to display custom value for the Range Tick labels. For example if the Range value is 600, I need to display it as 6mv. Could someone please suggest me a solution?

1 Answer 1

1

Assuming the conversion you want to use is simply value / 100:

plot.setRangeValueFormat(new Format() {
    @Override
    public StringBuffer format(Object object, StringBuffer buffer, FieldPosition field) {
        Number value = (Number) object;
            buffer.append(value.doubleValue() / 100 + "mv");
                return buffer;
    }

    @Override
    public Object parseObject(String string, ParsePosition position) {
        return null;
    }
});
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.