Page 1 of 1

Area overdraw (under Axis limit)

Posted: Thu Aug 31, 2006 7:20 am
by 9333771
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.

Posted: Thu Aug 31, 2006 7:23 am
by 9333771
oh, i forgot:

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

Posted: Thu Aug 31, 2006 8:10 am
by narcis
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.

Posted: Thu Aug 31, 2006 9:12 am
by 9333771
posted.

Posted: Thu Aug 31, 2006 10:59 am
by narcis
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;

Posted: Thu Aug 31, 2006 12:49 pm
by 9333771
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,