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 - Area series are drawn in the wrong order.
Summary: Area series are drawn in the wrong order.
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: .NET 5.0 (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-09 12:31 EDT by Brian Kohrs
Modified: 2021-07-19 07:15 EDT (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.