How to prohibit to draw graph outside axis area?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
luzhetsky
Newbie
Newbie
Posts: 16
Joined: Mon Feb 08, 2010 12:00 am

How to prohibit to draw graph outside axis area?

Post by luzhetsky » 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:

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.
Attachments
vert_zoom.jpg
after zoom
vert_zoom.jpg (108.71 KiB) Viewed 2823 times

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

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

Post by Narcís » Mon May 17, 2010 3:09 pm

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.
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

luzhetsky
Newbie
Newbie
Posts: 16
Joined: Mon Feb 08, 2010 12:00 am

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

Post by luzhetsky » Mon May 17, 2010 3:42 pm

cool!

Thank you!

Post Reply