Padding on Left of first Bar
Padding on Left of first Bar
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
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
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
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
Hi ZooX,
I think you could change the bottom axis minimum:
Or you could add some offset:
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:
I hope it helps.
I think you could change the bottom axis minimum:
Code: Select all
tChart1.getAxes().getBottom().setAutomaticMinimum(false);
tChart1.getAxes().getBottom().setMinimum(-1);
Code: Select all
tChart1.getAxes().getBottom().setMinimumOffset(10);
Code: Select all
tChart1.getAxes().getLeft().getAxisPen().setVisible(false);
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |