TSeriesRegionTool and a series with null values

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
jens.mertelmeyer
Newbie
Newbie
Posts: 60
Joined: Fri Nov 22, 2013 12:00 am

TSeriesRegionTool and a series with null values

Post by jens.mertelmeyer » Fri Jun 13, 2014 1:31 pm

Examine the following image: Just a TLineSeries (orange border) with some null values in between. I added a region tool. It fills the region from start to finish, as if there are no null values.
tseriesregiontool.png
tseriesregiontool.png (14.62 KiB) Viewed 5626 times
Is there anything I could do about it?

I guess I'll probably have to look for "holes" myself and add a single region tool for each single line.

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

Re: TSeriesRegionTool and a series with null values

Post by Yeray » Fri Jun 13, 2014 2:43 pm

Hello Jens,
jens.mertelmeyer wrote:I guess I'll probably have to look for "holes" myself and add a single region tool for each single line.
Yes, this would be an option.

I can also think on simply using a TAreaSeries with null points instead of a TLineSeries with a TSeriesRegionTool. Ie:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D:=false;

  with Chart1.AddSeries(TAreaSeries) as TAreaSeries do
  begin
    Color:=RGB(128, 128, 255);
    Pen.Color:=RGB(255, 128,0);
    Pen.Width:=3;
    AreaLinesPen.Visible:=false;
    Transparency:=50;

    FillSampleValues(15);
    SetNull(4);
    SetNull(5);
    SetNull(6);
  end;
end;
area.png
area.png (20.23 KiB) Viewed 5618 times
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