Page 1 of 1

How to prohibit to draw graph outside axis area?

Posted: Mon May 17, 2010 2:56 pm
by 16055208
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:

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;


        }
and when I zoom chart, candles outside the vertical axis area are drawing.

Thank you.

Re: How to prohibit to draw graph outside axis area?

Posted: Mon May 17, 2010 3:09 pm
by narcis
Hi luzhetsky,

Yes, this is possible. You should do as in the All Features\Welcome !\Axes\Opaque zones example in the features demo available at TeeChart's program group.

Re: How to prohibit to draw graph outside axis area?

Posted: Mon May 17, 2010 3:42 pm
by 16055208
cool!

Thank you!