Page 1 of 1

Issue with Polar Chart

Posted: Mon Oct 24, 2016 5:58 pm
by 16679449
I am upgrading my VB6 application from TeeChart V8.0.0.5 to TeeChart 2016.0.0.2 due to printing problems in Version 8 and Windows 10. Since upgrading to TeeChart 2016 my print issues have been corrected but now my polar plots will not display the correct data. See attached pictures showing the polar plot for TeeChart 8 and polar plots for TeeChart 2016.

With TeeChart 8, I used AddArray to add the data to the Series. With TeeChart 2016 first picture I used AddArray and second picture I have tried Add Polar and still cannot get the correct plot.

Re: Issue with Polar Chart

Posted: Tue Oct 25, 2016 8:03 am
by yeray
Hello,

I've just made a simple example with TeeChart ActiveX v2016.0.0.2 and this code:

Code: Select all

  TChart1.Header.Text.Clear
  
  TChart1.Aspect.View3D = False
  TChart1.Legend.Hide
  
  TChart1.AddSeries scPolar
  
  With TChart1.Series(0).asPolar
    .Pointer.Visible = False
    .CircleBrush.Style = bsClear
    .Brush.Style = bsClear
    .Pen.Color = TChart1.Series(0).Color
    .RotationAngle = 90
    
    .AddPolar -176, -14.683, "", clTeeColor
    .AddPolar -171, -7.123, "", clTeeColor
    .AddPolar -166, -7.386, "", clTeeColor
    .AddPolar -161, -7.409, "", clTeeColor
    .AddPolar -156, -7.831, "", clTeeColor
    .AddPolar -151, -7.624, "", clTeeColor
    .AddPolar -146, -12.116, "", clTeeColor
    .AddPolar -141, -16.562, "", clTeeColor
    .AddPolar -136, -17.006, "", clTeeColor
    .AddPolar -131, -21.822, "", clTeeColor
    .AddPolar -126, -20.759, "", clTeeColor
    .AddPolar -121, -24.894, "", clTeeColor
    .AddPolar -116, -22.416, "", clTeeColor
    .AddPolar -111, -33.226, "", clTeeColor
    .AddPolar -106, -33.623, "", clTeeColor
    .AddPolar -101, -28.852, "", clTeeColor
    .AddPolar -96, -25.223, "", clTeeColor
    .AddPolar -91, -23.405, "", clTeeColor
    .AddPolar -86, -23.168, "", clTeeColor
    .AddPolar -81, -27.575, "", clTeeColor
    .AddPolar -76, -29.608, "", clTeeColor
    .AddPolar -71, -25.718, "", clTeeColor
    .AddPolar -66, -32.794, "", clTeeColor
    .AddPolar -61, -23.667, "", clTeeColor
    .AddPolar -56, -22.978, "", clTeeColor
    .AddPolar -51, -23.77, "", clTeeColor
    .AddPolar -46, -25.691, "", clTeeColor
    .AddPolar -41, -26.886, "", clTeeColor
    .AddPolar -36, -21.122, "", clTeeColor
    .AddPolar -31, -20.086, "", clTeeColor
    .AddPolar -26, -17.813, "", clTeeColor
    .AddPolar -21, -13.13, "", clTeeColor
    .AddPolar -16, -13.267, "", clTeeColor
    .AddPolar -11, -13.065, "", clTeeColor
    .AddPolar -6, -5.737, "", clTeeColor
    .AddPolar -1, 28.65, "", clTeeColor
    .AddPolar 4, -1.07, "", clTeeColor
    .AddPolar 9, -13.488, "", clTeeColor
    .AddPolar 14, -5.515, "", clTeeColor
    .AddPolar 19, -18.006, "", clTeeColor
    .AddPolar 24, -18.737, "", clTeeColor
    .AddPolar 29, -21.368, "", clTeeColor
    .AddPolar 34, -27.901, "", clTeeColor
  End With
And I get the same result you were getting with TeeChart ActiveX v8:
polar_v2016.png
polar_v2016.png (63.17 KiB) Viewed 12117 times
So I'm not sure to understand how are you exactly adding those points. If you still find problems with it, please try to arrange a simple example project we can run as-is to reproduce the problem here.

Re: Issue with Polar Chart

Posted: Fri Oct 28, 2016 7:13 pm
by 16679449
I think I found why my data looked was wrong. Under Series General Tab, my data was sorted. How do I set the sort to None?

Re: Issue with Polar Chart

Posted: Mon Oct 31, 2016 9:39 am
by yeray
Hello,

You can try with this:

Code: Select all

TChart1.Series(0).XValues.Order = loNone
If you still find problems with it, try to arrange a simple example project we can run as-is to reproduce the problem here.

Re: Issue with Polar Chart

Posted: Mon Oct 31, 2016 3:43 pm
by 16679449
Thank you that worked