Area overdraw (under Axis limit)

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Mariano
Newbie
Newbie
Posts: 46
Joined: Fri Nov 15, 2002 12:00 am
Location: España

Area overdraw (under Axis limit)

Post by Mariano » Thu Aug 31, 2006 7:20 am

Hi,

I’m using an area main series on a vert. axis (0%-80%) and a line series (function of the main one) on an other vert. axis (80%-100%).

When I zoom and the point before the first visible is under the limit of the vert axis, the area overwrite my other series. (please, look at the printscreen to understand me)
Image

I will like that the Area don’t draw under the axis limit (.IEndPos)

I didn’t found any post/doc talking about this. How can I avoid this? Is this a bug?

I can send you a demo project if you want.

Thanks in advance for your help.

Mariano
Newbie
Newbie
Posts: 46
Joined: Fri Nov 15, 2002 12:00 am
Location: España

Post by Mariano » Thu Aug 31, 2006 7:23 am

oh, i forgot:

I'm using:
winXP SP2,
TeeChart win 7.05
Delphi Architect 9.0

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

Post by Narcís » Thu Aug 31, 2006 8:10 am

Hi Mariano,

Yes, please send us an example project we can run "as-is" to reproduce the problem here. You can post your files at news://www.steema.net/steema.public.attaachments newsgroup.

Thanks in advance.
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

Mariano
Newbie
Newbie
Posts: 46
Joined: Fri Nov 15, 2002 12:00 am
Location: España

Post by Mariano » Thu Aug 31, 2006 9:12 am

posted.

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

Post by Narcís » Thu Aug 31, 2006 10:59 am

Hi Mariano,

Thanks for the example project. I could reproduce the issue here and added it (TV52011730) to our defect list to be fixed for future releases.

In the meantime you can hide this area by custom drawing on TChart's canvas, for example:

Code: Select all

procedure TForm2.Chart1AfterDraw(Sender: TObject);
var R: TRect;
begin
  With Chart1 do
  begin
    R.Left:=ChartRect.Left+1;
    R.Top:=Axes.Left.IEndPos;
    R.Right:=ChartRect.Right;
    R.Bottom:=ChartRect.Bottom;

    Canvas.Pen.Style:=psClear;
    Canvas.Brush.Color:=Color;
    Canvas.Rectangle(R);
  end;
end;
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

Mariano
Newbie
Newbie
Posts: 46
Joined: Fri Nov 15, 2002 12:00 am
Location: España

Post by Mariano » Thu Aug 31, 2006 12:49 pm

thanks for your reply,

I don't think the code you gave me will help, cause it will also erase my second series. (not displayed on the example).

but thanks for the help.

regards,

Post Reply