Chart Area Width and Height

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Krishna
Newbie
Newbie
Posts: 16
Joined: Mon Jun 12, 2006 12:00 am
Contact:

Chart Area Width and Height

Post by Krishna » Fri Aug 04, 2006 11:27 am

Hi,

Please help me in calculation of the exact chart area (where the graphs appears) width and height.

when i am calculating manually the width and height not getting the exact values, if I changed the titles and lables in display angles, it is not giving the exact value;

The width and height are used to place scrollbar exactly to that area.


Regards,
Kishore.

stark
Newbie
Newbie
Posts: 10
Joined: Wed Jul 26, 2006 12:00 am
Location: Girona / Catalunya

Post by stark » Fri Aug 04, 2006 4:00 pm

Hello Krishna,

this should help you

Code: Select all

  height := Chart1.ChartRect.right - chart1.chartrect.left;
  width := chart1.ChartRect.Bottom - Chart1.ChartRect.Top ;
have nice weekend!
Best regards
Alex

Steema Crew

Post Reply