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 2339 - Legend Inverted property paints bottom of sorted list rather than top
Summary: Legend Inverted property paints bottom of sorted list rather than top
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Legend (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-17 11:12 EDT by christopher ireland
Modified: 2021-10-07 11:19 EDT (History)
0 users

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


Attachments
non-inverted legend (14.06 KB, image/png)
2020-06-17 11:12 EDT, christopher ireland
Details
inverted legend (14.07 KB, image/png)
2020-06-17 11:13 EDT, christopher ireland
Details
corrected legend (14.07 KB, image/png)
2020-06-17 11:17 EDT, christopher ireland
Details

Note You need to log in before you can comment on or make changes to this bug.
Description christopher ireland 2020-06-17 11:12:29 EDT
Created attachment 941 [details]
non-inverted legend

Non-inverted legend (see attachment)

        private void InitializeChart()
        {
            var line = new Line(_tChart.Chart);

            for (int i = 0; i < 100; i++)
            {
                line.Add(i);
            }

            //_tChart.Legend.Inverted = true;
        }

Inverted legend (see attachment):

        private void InitializeChart()
        {
            var line = new Line(_tChart.Chart);

            for (int i = 0; i < 100; i++)
            {
                line.Add(i);
            }

            _tChart.Legend.Inverted = true;
        }
Comment 1 christopher ireland 2020-06-17 11:13:15 EDT
Created attachment 942 [details]
inverted legend
Comment 2 christopher ireland 2020-06-17 11:15:06 EDT
The issue here is that the non-inverted legends paints values from the top of the sorted list, whereas the inverted legends paints values from the bottom of the sorted list. If the inverted legend was also to paint values from the top of the sorted list, it would look like the attachment 'corrected legend'
Comment 3 christopher ireland 2020-06-17 11:17:14 EDT
Created attachment 943 [details]
corrected legend