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

Summary: Legend Inverted property paints bottom of sorted list rather than top
Product: .NET TeeChart Reporter: christopher ireland <chris>
Component: LegendAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: non-inverted legend
inverted legend
corrected legend

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