Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 2447

Summary: Area series are drawn in the wrong order.
Product: .NET TeeChart Reporter: Brian Kohrs <bkohrs>
Component: .NET 5.0Assignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: major CC: chris
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description Brian Kohrs 2021-07-09 12:31:22 EDT
If you have a 3D chart with multiple area series, they are drawn in the wrong order. It appears that the logic in Area.DrawSeriesAscending is the issue. If I descend from Area and "fix" the logic, it draws it in the correct order. I have provided an example here: https://github.com/jhabkohrs/TeeChartAreaSeriesOrder.
Comment 1 Brian Kohrs 2021-07-12 11:52:48 EDT
(In reply to Brian Kohrs from comment #0)
> If you have a 3D chart with multiple area series, they are drawn in the
> wrong order. It appears that the logic in Area.DrawSeriesAscending is the
> issue. If I descend from Area and "fix" the logic, it draws it in the
> correct order. I have provided an example here:
> https://github.com/jhabkohrs/TeeChartAreaSeriesOrder.

After some additional testing, the same issue exists for HorizBar series. While there is a workaround for Area, the DrawSeriesAscending method is internal for HorizBar, so there is no workaround for HorizBar.
Comment 2 Brian Kohrs 2021-07-12 14:57:41 EDT
(In reply to Brian Kohrs from comment #1)
> (In reply to Brian Kohrs from comment #0)
> > If you have a 3D chart with multiple area series, they are drawn in the
> > wrong order. It appears that the logic in Area.DrawSeriesAscending is the
> > issue. If I descend from Area and "fix" the logic, it draws it in the
> > correct order. I have provided an example here:
> > https://github.com/jhabkohrs/TeeChartAreaSeriesOrder.
> 
> After some additional testing, the same issue exists for HorizBar series.
> While there is a workaround for Area, the DrawSeriesAscending method is
> internal for HorizBar, so there is no workaround for HorizBar.

I withdraw my comment about HorizBar series. In trying to create a simple reproduction case, I found it was an issue with my data, not with the component.