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

Summary: Radar series values always are painted in anticlockwise although the labels are drawn in clockwise.
Product: .NET TeeChart Reporter: sandra pazos <sandra>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED NOTABUG    
Severity: normal CC: chris
Priority: High    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://teechart.net/directline/viewtopic.php?f=6&t=1061
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

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();
    }