Padding on Left of first Bar

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
ZooX
Newbie
Newbie
Posts: 18
Joined: Tue Aug 25, 2009 12:00 am

Padding on Left of first Bar

Post by ZooX » Mon Jun 14, 2010 6:02 pm

I must be missing something. How do I make the very left most bar *NOT* start exactly on the left border of the chart? Meaning my very first bar is ontop of the left border of the chart and it is not viewable at 100% zoom.

ZooX
Newbie
Newbie
Posts: 18
Joined: Tue Aug 25, 2009 12:00 am

Re: Padding on Left of first Bar

Post by ZooX » Mon Jun 14, 2010 6:07 pm

And I don't want

setStartPosition because that actually moves the entire thing over and has a void for a line along the bottom. I just want to start the first bar so it is visible and not directly ontop of the left border

ZooX
Newbie
Newbie
Posts: 18
Joined: Tue Aug 25, 2009 12:00 am

Re: Padding on Left of first Bar

Post by ZooX » Mon Jun 14, 2010 6:58 pm

Actually it would work if I can even shut off the line on the left, (x axis) it isn't needed. What is that called? How do I access it? Shouldn't it be a child of chart.getAxes().getLeft().****** get Something.

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Padding on Left of first Bar

Post by Yeray » Thu Jun 17, 2010 11:02 am

Hi ZooX,

I think you could change the bottom axis minimum:

Code: Select all

      tChart1.getAxes().getBottom().setAutomaticMinimum(false);
      tChart1.getAxes().getBottom().setMinimum(-1);
Or you could add some offset:

Code: Select all

tChart1.getAxes().getBottom().setMinimumOffset(10);
Regarding the line you want to hide, I'm not sure if you mean the left axis line but, it can be done like follows:

Code: Select all

tChart1.getAxes().getLeft().getAxisPen().setVisible(false);
I hope it helps.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply