Hello,
I believe this question was asked many years ago but I could not retrieve anything from Search.
I need to fill the area between 2 series (e.g. Series1 and Series2) with a constraint that fill will apply only when Series1 values are smaller than Series 2 (see attached image), I tried using the available TChart tools but with no luck, any help would be mostly appreciated
Regards
Fill area between 2 series
Fill area between 2 series
- Attachments
-
- Annotation 2019-04-08 120016.png (5.35 KiB) Viewed 18072 times
Re: Fill area between 2 series
Hello,
Check the Series Band Tool. I've just run the "All features\Welcome !\Tools\Series Band" example in the New Features demo, changed the series from Line series to HorizLine series and reassigned the second series for the tool:
Check the Series Band Tool. I've just run the "All features\Welcome !\Tools\Series Band" example in the New Features demo, changed the series from Line series to HorizLine series and reassigned the second series for the tool:
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Fill area between 2 series
Hello,
I tried that, had to change both line series to Horizontal type however the result is not good.
Regards
I tried that, had to change both line series to Horizontal type however the result is not good.
Regards
- Attachments
-
- Annotation 2019-04-08 152955.png (4.58 KiB) Viewed 18064 times
Re: Fill area between 2 series
Hello,
Please, arrange a simple example project we can run as-is to reproduce the problem here.
Thanks in advance.
Please, arrange a simple example project we can run as-is to reproduce the problem here.
Thanks in advance.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Fill area between 2 series
Here is a sample app
- Attachments
-
- test.zip
- (51.92 KiB) Downloaded 1093 times
Re: Fill area between 2 series
Hello,
I could reproduce the problem so I've added it tot he public tracker: #2182.
Note I've already fixed it.
The fix consists on modifying the TryAddCrossPoint function in TeeSeriesBandTool.pas, from this:
To this:
I could reproduce the problem so I've added it tot he public tracker: #2182.
Note I've already fixed it.
The fix consists on modifying the TryAddCrossPoint function in TeeSeriesBandTool.pas, from this:
Code: Select all
function TryAddCrossPoint(t:Integer; isStairs,isStairs2:Boolean):Boolean;
//...
if result then
AddPointXY(Series.CalcXPosValue(X),Series.CalcYPosValue(Y))
end
else
if IsStairs then
AddPoint(Series,IsStairs,t);
end;
Code: Select all
function TryAddCrossPoint(t:Integer; isStairs,isStairs2:Boolean):Boolean;
//...
if result then
begin
if Series.YMandatory then
AddPointXY(Series.CalcXPosValue(X),Series.CalcYPosValue(Y))
else
AddPointXY(Series.CalcXPosValue(Y),Series.CalcYPosValue(X));
end
else
if IsStairs then
AddPoint(Series,IsStairs,t);
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Fill area between 2 series
Hello,
Thank you, will give it a try
Regards
Thank you, will give it a try
Regards