Page 1 of 1

Candle (OHLC) axis problem

Posted: Mon Dec 22, 2008 11:04 am
by 9637567
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.

Posted: Mon Dec 22, 2008 11:36 am
by narcis
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.

Posted: Mon Dec 22, 2008 11:46 am
by 9637567
Hi NarcĂ­s,

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