Page 1 of 1
Clipping of LineSeries
Posted: Mon Jan 25, 2010 11:20 am
by 10551564
Hi,
having LineSeries the datapoints with Y-values lower than LeftAxis.Minimum are not shown:
- 2D.JPG (25.95 KiB) Viewed 4358 times
But switching to 3D-view the datapoints with Y-values lower than LeftAxis.Minimum are visible:
- 3D.JPG (48.84 KiB) Viewed 4349 times
Is there a possibility to make these points unvisible in 3D-view?
Best regards
Re: Clipping of LineSeries
Posted: Mon Jan 25, 2010 12:02 pm
by narcis
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.
Re: Clipping of LineSeries
Posted: Mon Jan 25, 2010 12:15 pm
by yeray
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;
Re: Clipping of LineSeries
Posted: Mon Jan 25, 2010 12:33 pm
by 10551564
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
Re: Clipping of LineSeries
Posted: Mon Jan 25, 2010 12:55 pm
by yeray
Hi Heinz,
That's what null points do internally