Page 1 of 1

Axis with arrow?

Posted: Sat Feb 23, 2013 3:38 pm
by 17064597
Is it possible to add an arrow at the end of the left axis?

Re: Axis with arrow?

Posted: Mon Feb 25, 2013 12:18 pm
by narcis
Hi znakeeye,

Yes, you can use AxisArrow tool:

Code: Select all

        AxisArrow axisArrow1 = new AxisArrow(tChart1.getAxes().getLeft());
        axisArrow1.setPosition(AxisArrowPosition.END);

Re: Axis with arrow?

Posted: Tue Feb 26, 2013 10:50 pm
by 17064597

Code: Select all

AxisArrowPosition.START
worked better. Thanks.

How do I remove the arrow after adding it?

Re: Axis with arrow?

Posted: Tue Feb 26, 2013 10:54 pm
by 17064597
Ah, got it!

Code: Select all

chart.getTools().clear();