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 1431 - Radar series values always are painted in anticlockwise although the labels are drawn in clockwise.
Summary: Radar series values always are painted in anticlockwise although the labels a...
Status: RESOLVED NOTABUG
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: PC Windows
: High normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://teechart.net/directline/viewto...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-05 05:09 EST by sandra pazos
Modified: 2016-03-24 11:20 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 sandra pazos 2016-02-05 05:09:02 EST
Radar series values always are painted in anticlockwise although the labels are drawn in clockwise. The series should change its position if the labels are changed. The problem appears in the TeeChart.Net release 4.1.2015.03114. That works fine in TeeChartVCL version.
Comment 1 christopher ireland 2016-03-24 11:20:21 EDT
This change was taken out by design. The fact that string label positions (and not value label positions) are changed should not necessarily change the positions of the values. The recommended way of working is this:

    Radar line;
    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
      line = new Radar(tChart1.Chart);

      int length = 10;
      line.CircleLabels = true;


      for (int i = 1; i <= length; i++)
      {
        double angle = (360 / length) * i;
        line.Add(angle, angle, angle.ToString());
      }
    }

    private void button4_Click(object sender, EventArgs e)
    {
      line.ClockWiseLabels = !line.ClockWiseLabels;

      line.XValues.Order = line.ClockWiseLabels ? ValueListOrder.Descending : ValueListOrder.Ascending;
      line.XValues.Sort();
    }