Page 1 of 1

Series labels and sorting

Posted: Mon Jun 08, 2015 1:44 pm
by 15671530
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 5702 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 5689 times
Can someone figure out or explain what's going on?
Thanks.

Re: Series labels and sorting

Posted: Tue Jun 09, 2015 8:18 am
by Christopher
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();
    }

Re: Series labels and sorting

Posted: Tue Jun 09, 2015 2:30 pm
by 15671530
Thanks for the clarification.