Candle (OHLC) axis problem
Posted: 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.
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.