Series labels and sorting

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
DaVinci
Newbie
Newbie
Posts: 9
Joined: Wed Feb 18, 2015 12:00 am

Series labels and sorting

Post by DaVinci » Mon Jun 08, 2015 1:44 pm

Hi,

I have a simple application with a horizontal bar with labels. You can see in my screenshot 1 how I created the bar series and how the result looks like.
snap1.png
Screenshot 1
snap1.png (77.74 KiB) Viewed 5705 times
When I modify the sorting of this horizontal bar (by default it's set to 'descending') towards sorting 'None', the sorting appears as ascending and the X-axis displays now the Y-value... very strange (see screenshot 2).
snap2.png
Screenshot 2
snap2.png (47.36 KiB) Viewed 5692 times
Can someone figure out or explain what's going on?
Thanks.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Series labels and sorting

Post by Christopher » Tue Jun 09, 2015 8:18 am

Hello,
DaVinci wrote: Can someone figure out or explain what's going on?
Yes, this appears to be a small defect in the Chart Editor which is now resolved. You will note that at runtime the code works correctly, e.g.

Code: Select all

    HorizBar bar;
    private void InitializeChart()
    {
      bar = new HorizBar(tChart1.Chart);
      bar.Add(50, 0, "fifty");
      bar.Add(80, 1, "eighty");
      bar.Add(70, 2, "seventy");
      bar.Add(60, 3, "sixty");
    }

    private void button4_Click(object sender, EventArgs e)
    {
      bar.XValues.Order = ValueListOrder.Ascending;
      bar.CheckOrder();
    }
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

DaVinci
Newbie
Newbie
Posts: 9
Joined: Wed Feb 18, 2015 12:00 am

Re: Series labels and sorting

Post by DaVinci » Tue Jun 09, 2015 2:30 pm

Thanks for the clarification.

Post Reply