How to prohibit to draw graph outside axis area?
Posted: Mon May 17, 2010 2:56 pm
Hi TeeChart Team!
We do not need draw graph outside the axis's area (after zoom) in case, if axis does not fill whole height of the chart. Could you please answer how to do it, if it is possible?
Code of my sample is:
and when I zoom chart, candles outside the vertical axis area are drawing.
Thank you.
We do not need draw graph outside the axis's area (after zoom) in case, if axis does not fill whole height of the chart. Could you please answer how to do it, if it is possible?
Code of my sample is:
Code: Select all
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Steema.TeeChart.Styles.Candle candle = new Steema.TeeChart.Styles.Candle(tChart1.Chart);
candle.FillSampleValues((int)(100));
candle.GetVertAxis.StartPosition = 30;
candle.GetVertAxis.EndPosition = 70;
tChart1.Zoom.Direction = Steema.TeeChart.ZoomDirections.Vertical;
}
Thank you.