Page 1 of 1

Padding on Left of first Bar

Posted: Mon Jun 14, 2010 6:02 pm
by 15354147
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.

Re: Padding on Left of first Bar

Posted: Mon Jun 14, 2010 6:07 pm
by 15354147
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

Re: Padding on Left of first Bar

Posted: Mon Jun 14, 2010 6:58 pm
by 15354147
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.

Re: Padding on Left of first Bar

Posted: Thu Jun 17, 2010 11:02 am
by yeray
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.