[High-Low Chart] How to locate bars in the centre

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
ivic
Newbie
Newbie
Posts: 2
Joined: Mon Dec 31, 2012 12:00 am

[High-Low Chart] How to locate bars in the centre

Post by ivic » Fri Jul 05, 2013 3:41 am

Hi!

I've got a simple a high low chart and I'd like to locate the bars (on the left chart) in the centre like the chart on the right.
(please refer to the attachment)

I'll be glad if anyone lets me know how to do it.

Thanks in advance.
Attachments
graph-1.jpg
graph-1.jpg (92.77 KiB) Viewed 5649 times

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

Re: [High-Low Chart] How to locate bars in the centre

Post by Yeray » Fri Jul 05, 2013 1:20 pm

Hi,

You can set some Offset to both the bottom axis minimum and maximum:

Code: Select all

tChart1.getAxes().getBottom().setMinimumOffset(30);
tChart1.getAxes().getBottom().setMaximumOffset(30);
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