Axis with arrow?

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
znakeeye
Newbie
Newbie
Posts: 44
Joined: Mon Jan 07, 2013 12:00 am

Axis with arrow?

Post by znakeeye » Sat Feb 23, 2013 3:38 pm

Is it possible to add an arrow at the end of the left axis?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Axis with arrow?

Post by Narcís » Mon Feb 25, 2013 12:18 pm

Hi znakeeye,

Yes, you can use AxisArrow tool:

Code: Select all

        AxisArrow axisArrow1 = new AxisArrow(tChart1.getAxes().getLeft());
        axisArrow1.setPosition(AxisArrowPosition.END);
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

znakeeye
Newbie
Newbie
Posts: 44
Joined: Mon Jan 07, 2013 12:00 am

Re: Axis with arrow?

Post by znakeeye » Tue Feb 26, 2013 10:50 pm

Code: Select all

AxisArrowPosition.START
worked better. Thanks.

How do I remove the arrow after adding it?

znakeeye
Newbie
Newbie
Posts: 44
Joined: Mon Jan 07, 2013 12:00 am

Re: Axis with arrow?

Post by znakeeye » Tue Feb 26, 2013 10:54 pm

Ah, got it!

Code: Select all

chart.getTools().clear();

Post Reply