Clipping of LineSeries

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Heinz
Newbie
Newbie
Posts: 18
Joined: Wed Jan 21, 2009 12:00 am

Clipping of LineSeries

Post by Heinz » Mon Jan 25, 2010 11:20 am

Hi,

having LineSeries the datapoints with Y-values lower than LeftAxis.Minimum are not shown:
2D.JPG
2D.JPG (25.95 KiB) Viewed 4355 times

But switching to 3D-view the datapoints with Y-values lower than LeftAxis.Minimum are visible:
3D.JPG
3D.JPG (48.84 KiB) Viewed 4346 times
Is there a possibility to make these points unvisible in 3D-view?

Best regards

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

Re: Clipping of LineSeries

Post by Narcís » Mon Jan 25, 2010 12:02 pm

Hi Heinz,

I'm afraid not. This is a known issue in the wish-list (TV52013260) which we will try to enhance for future releases. It's not an easy one though. It will probably involve important series painting redesign.
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

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

Re: Clipping of LineSeries

Post by Yeray » Mon Jan 25, 2010 12:15 pm

Hi Heinz,

As an update, a workaround could be using null points to hide the ones out of the axis range. Something like following:

Code: Select all

procedure TForm1.Button1Click(Sender: TObject);
var i: Integer;
begin
  Series1.TreatNulls:=tnDontPaint;
  Series1.IgnoreNulls:=false;
  for i := 0 to Series1.Count-1 do
  begin
    if Series1.YValue[i] < Chart1.Axes.Left.Minimum then Series1.SetNull(i)
    else Series1.SetNull(i,false);
  end;
end;
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

Heinz
Newbie
Newbie
Posts: 18
Joined: Wed Jan 21, 2009 12:00 am

Re: Clipping of LineSeries

Post by Heinz » Mon Jan 25, 2010 12:33 pm

Hi Narcis & Yeray,

many thanks for your answers.
In the meantime I also found a workaround by setting the valuecolor-property for these points to clNone.

Best regards

Heinz

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

Re: Clipping of LineSeries

Post by Yeray » Mon Jan 25, 2010 12:55 pm

Hi Heinz,

That's what null points do internally ;)
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