Page 1 of 1
TSeriesRegionTool and a series with null values
Posted: Fri Jun 13, 2014 1:31 pm
by 16567885
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 (14.62 KiB) Viewed 5628 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.
Re: TSeriesRegionTool and a series with null values
Posted: Fri Jun 13, 2014 2:43 pm
by yeray
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 (20.23 KiB) Viewed 5620 times