Polar Plot Incorrectly Plots Points With ClockWiseLabels

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
mdemoret
Newbie
Newbie
Posts: 4
Joined: Wed Dec 14, 2011 12:00 am

Polar Plot Incorrectly Plots Points With ClockWiseLabels

Post by mdemoret » Wed Jan 11, 2012 6:14 pm

Hello Steema,

I've been working with TeeChart's Polar Plots and I came across odd functionality when using the ClockWiseLabels property. It seems that when ClockWiseLabels is set to true the points are still plotted normally in a counter-clockwise order. I created a simple project to illustrate this that plots the points: (0, 5), (10, 6), (20, 7). First on the left with ClockWiseLabels = false and then on the right with ClockWiseLabels = true.
ClockWiseBoth.png
ClockWiseBoth.png (128.75 KiB) Viewed 4134 times
You can also get some very unexpected behavior when switching ClockWiseLabels and continuing to plot points spiraling outwards. It looks like the plot correctly switches the existing points but continues to plot in a clockwise order resulting in the jump shown below.
ClockWiseSwitch.png
ClockWiseSwitch.png (78.56 KiB) Viewed 4065 times
Everything works fine if the data is added and then ClockWiseLabels is set to true. But this does not work for us since we will be plotting data in real-time. Is there anyway to get the polar chart to correctly plot the points if ClockWiseLabels = true? Or is my only option to do:

Code: Select all

if (polar1.ClockWiseLabels)
    polar1.Add(xValue * -1, yValue);
else
    polar1.Add(xValue, yValue);
Also, I have been having a problem with adding a Sub Header. It seems that whenever I set the sub header to visible, I lose all of the font properties for the Title. This is illustrated below with SubHeader.Visible = false on the left, and SubHeader.Visible = true on the right:
SubHeaderBoth.png
SubHeaderBoth.png (165.91 KiB) Viewed 4062 times
After setting SubHeader.Visible = true, altering the font for the title has no effect. Is there a way to alter the font settings for both the title and sub header? Is the order in which the fonts/visibilities important?

Thanks for your help in advance. I am running TeeCharts 4.1.2011.10191 for .NET 2.0.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Polar Plot Incorrectly Plots Points With ClockWiseLabels

Post by Sandra » Thu Jan 12, 2012 1:15 pm

Hello mdemoret,

Question 1:
I couldn't reproduce your problem using last version of TeeChart.Net and next code:

Code: Select all

   private void InitializeChart()
        {
            Steema.TeeChart.Styles.Line line = new Line(tChart1.Chart);
            line.FillSampleValues();
            tChart1.Header.Font.Size = 16;
            tChart1.SubHeader.Visible = true;
            tChart1.SubHeader.Text = "SubHeader";
            tChart1.SubHeader.Font.Size = 10;
        }
I recommend you update your version of Teechart.Net and try again if your problem persist. If it persist, please can you send us simple project because we can reproduce your problem here? You can download new maintenance release of TeeChart.Net in customer download page.

Question 2
I can reproduce your problem using last version of TeeChart.Net and I have added your request in bug list report with number [TF02016002]. We will try to fix it for next maintenance releases of TeeChart.Net.

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

mdemoret
Newbie
Newbie
Posts: 4
Joined: Wed Dec 14, 2011 12:00 am

Re: Polar Plot Incorrectly Plots Points With ClockWiseLabels

Post by mdemoret » Thu Jan 12, 2012 5:18 pm

Sandra,

Thank you for the quick reply. I will update to the latest release and check both of these issues again. However, I am unsure which issue got submitted as a bug. The code you posted in response to question 1 seems more related to the second question I asked. Is there a public bug tracking system I can use to see the status of bug #[TF02016002]? Also, which question could you not reproduce? The question relating to the ClockWiseLabels plotting, or the question related to the Title and Sub Header? Thank you.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Polar Plot Incorrectly Plots Points With ClockWiseLabels

Post by Sandra » Fri Jan 13, 2012 3:27 pm

Hello mdemoret,

I am sorry, your are right. I attached by mistake, a wrong code. The code where ClockWiseLabels works fine is next:

Code: Select all

  Steema.TeeChart.Styles.Polar polar1;
        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            polar1.ClockWiseLabels = checkBox1.Checked;
        }

        private void InitializeChart()
        {
            tChart1.Chart.Aspect.View3D = false; 
            polar1 = new Polar(tChart1.Chart);
             polar1.Add(0, 5);
             polar1.Add(10, 6);
             polar1.Add(20, 7);
             polar1.CircleLabels = true;
             polar1.bBrush.Visible = false;
             polar1.CloseCircle = false;
             checkBox1.Checked = true;
        }
Please check if previous code works as you expect.
Is there a public bug tracking system I can use to see the status of bug #[TF02016002]?
You can check if a bug is fixed, in release notes of each maintenance release of Teechart.Net. Moreover, I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them.

On the other hand, when I talk about bug with number TF02016002, I am referring to problem with Header and Subheader.

I hope will help and sorry for the misunderstanding

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply