Axis area pixel coordinates?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Michal Blazejczyk
Newbie
Newbie
Posts: 64
Joined: Fri Jun 16, 2006 12:00 am

Axis area pixel coordinates?

Post by Michal Blazejczyk » Thu Sep 07, 2006 9:41 pm

Hi,

Is there a way to "ask" a chart for the exact pixel coordinates of the axis area, i.e. the area between axes inside which the series are painted?

Best,
Michal Blazejczyk
Best,
Michal Blazejczyk
Lead Programmer
Genome Quebec

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

Post by Narcís » Fri Sep 08, 2006 7:35 am

Hi Michal,

There are a couple of things you can do here:
  • 1. Use ChartRect coordinates for the full chart area:

    Code: Select all

          tChart1.Chart.ChartRect.Left
          tChart1.Chart.ChartRect.Top
          tChart1.Chart.ChartRect.Right
          tChart1.Chart.ChartRect.Bottom
    2. You can also determine the area where series are drawn by knowing its axes positions:

    Code: Select all

          tChart1.Axes.Left.StartPosition
          tChart1.Axes.Left.EndPosition
          tChart1.Axes.Left.Position
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

Post Reply