Page 1 of 1

Axis area pixel coordinates?

Posted: Thu Sep 07, 2006 9:41 pm
by 9641603
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

Posted: Fri Sep 08, 2006 7:35 am
by narcis
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