Candle (OHLC) axis problem

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
SPS
Newbie
Newbie
Posts: 18
Joined: Wed Jun 29, 2005 4:00 am

Candle (OHLC) axis problem

Post by SPS » Mon Dec 22, 2008 11:04 am

Hi,

When using the Candle (OHLC) the x axis seems to move a tiny bit (some white space at the begin and end of the graph). This problem doesn't seem to happen when setting:

Chart.Axes.Bottom.Automatic = false;

or when using:

Chart.Axes.Bottom.SetMinMax(chart.Chart.Axes.Bottom.Minimum, chart.Chart.Axes.Bottom.Maximum);

Is this a known error or am i doing something wrong that cause this problem?

This error occurs both when making an empty candle or one with values and add it to the current chart (with other series which are not candles).

Some code i tried:

Plain candle without data:

Steema.TeeChart.Styles.Candle candle1 = new Steema.TeeChart.Styles.Candle();
chart.Series.Add(candle1);

After this a white space (margin) occurs at begin and end.

Steema.TeeChart.Styles.Candle candle1 = new Steema.TeeChart.Styles.Candle();
candle1.Add(series.XValues[100], 50, 90, 40, 70);
chart.Series.Add(candle1);

Same happens.

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

Post by Narcís » Mon Dec 22, 2008 11:36 am

Hi SPS,

You can try using this:

Code: Select all

			candle1.Pointer.InflateMargins = false;
If this doesn't help please send us a simple example project we can run "as-is" to reproduce the problem here and an image indicating which the problem is.

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.
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

SPS
Newbie
Newbie
Posts: 18
Joined: Wed Jun 29, 2005 4:00 am

Post by SPS » Mon Dec 22, 2008 11:46 am

Hi Narcís,

Thanks for the fast reply. That seems to do the trick. Thanks!

Post Reply