Hi
It seems that ErrorBars are not plotted correctly when the Bar has a value below Zero. Only one side of the ErrorBar appear in the plot. This error has been in all previous versions. Last year I found a few posts in the forum claiming that it is corrected, but does not seems so. The following plot is from Tee Chart v2105.14.150.120:
I also saved the plot in "tee" format so one can load it in a chart and recreate the error. Please download it by the following link:
http://www.multid.se/Amin/ErrorBar.tee
Please advise.
BR
emwamin
ErrorBar not plotted correctly
Re: ErrorBar not plotted correctly
Hello,
I'm studying if a small change in the sources is appropriate. This is how it looks with it:
Also note this modification also changes the result of the "Top" ErrorStyle, from this:
To this:
Your feedback will be appreciated.
I get an error when trying to load this tee file, but I've made a simple example project trying to reproduce several situations:emwamin wrote:I also saved the plot in "tee" format so one can load it in a chart and recreate the error. Please download it by the following link:
http://www.multid.se/Amin/ErrorBar.tee
I could reproduce the problem with the application above:emwamin wrote:It seems that ErrorBars are not plotted correctly when the Bar has a value below Zero. Only one side of the ErrorBar appear in the plot.
I'm studying if a small change in the sources is appropriate. This is how it looks with it:
Also note this modification also changes the result of the "Top" ErrorStyle, from this:
To this:
Your feedback will be appreciated.
I find this discussion, is this what you are referring?emwamin wrote:This error has been in all previous versions. Last year I found a few posts in the forum claiming that it is corrected, but does not seems so. The following plot is from Tee Chart v2105.14.150.120:
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: ErrorBar not plotted correctly
Hi
This solution works for me since I always use both Top and Down error bar. How can I get this correction?
BR
emwamin
This solution works for me since I always use both Top and Down error bar. How can I get this correction?
BR
emwamin
Re: ErrorBar not plotted correctly
Hi,
At the end of the TCustomErrorSeries.DrawBar in ErrorBar.pas you have this:
Change it for this:
Since it is a small change and you own the sources, you can apply it and recompile.emwamin wrote:How can I get this correction?
At the end of the TCustomErrorSeries.DrawBar in ErrorBar.pas you have this:
Code: Select all
Procedure TCustomErrorSeries.DrawBar(BarIndex,StartPos,EndPos:Integer);
//...
if IDrawBar and (YValues.Value[BarIndex]<YOrigin) then
begin
tmpHeight:=-tmpHeight;
DoDrawError;
inherited;
end
else
begin
if IDrawBar then
inherited;
DoDrawError;
end;
end
else
if IDrawBar then
inherited;
end;
Code: Select all
Procedure TCustomErrorSeries.DrawBar(BarIndex,StartPos,EndPos:Integer);
//...
if IDrawBar then
inherited;
DoDrawError;
end
else
if IDrawBar then
inherited;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: ErrorBar not plotted correctly
Hi
Worked like a charm. Thanks.
BR
emwamin
Worked like a charm. Thanks.
BR
emwamin
Re: ErrorBar not plotted correctly
Hi
After making that change I am facing a new problem. In toolbox I get the option for styling the ErrorBar but the controls are disabled. If you switch to another serie and switch back the styling controls are disappeared.
I am using Delphi 7 and TeeChart version 2015.16.150901.
BR
emwamin
After making that change I am facing a new problem. In toolbox I get the option for styling the ErrorBar but the controls are disabled. If you switch to another serie and switch back the styling controls are disappeared.
I am using Delphi 7 and TeeChart version 2015.16.150901.
BR
emwamin
Re: ErrorBar not plotted correctly
Hello,
http://bugs.teechart.net/show_bug.cgi?id=1419
Note I've also fixed it for the next maintenance release.
I could reproduce that so I've added it tot he public tracker:emwamin wrote:In toolbox I get the option for styling the ErrorBar but the controls are disabled. If you switch to another serie and switch back the styling controls are disappeared.
http://bugs.teechart.net/show_bug.cgi?id=1419
Note I've also fixed it for the next maintenance release.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |