Flat line at Y val

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
seanmurphy
Newbie
Newbie
Posts: 48
Joined: Fri Mar 12, 2004 5:00 am

Flat line at Y val

Post by seanmurphy » Wed Jan 09, 2013 6:30 am

Can you advise on best way to add a flat line on a standard XY chart please. I have charts which have X=increment of samples 1 through N000, and a single variable that varies in y axis. I want to put a line at a specified tolerance, say at y=6, so there is a flat line from x min to x max of chart. I can do this by ading linetool, or by adding a tlineseries and drawing t between x-min and x-max. But is there a simpler method that avoids adding another object to my chart? Something like in afterdraw of chart
movetoxy(xmin,yval)
linetoxy(xmaxyval)

thanks
Sean

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Flat line at Y val

Post by Yeray » Wed Jan 09, 2013 12:10 pm

Hi Sean,

I can't think on other ways to do it apart from the alternatives you've mentioned: TColorLineTool or direct drawing at OnAfterDraw event
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply