Issue with Polar Chart

TeeChart for ActiveX, COM and ASP
Post Reply
NSI-MI
Newbie
Newbie
Posts: 7
Joined: Tue Oct 18, 2016 12:00 am

Issue with Polar Chart

Post by NSI-MI » Mon Oct 24, 2016 5:58 pm

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.
Attachments
TeeChart 2016 - polar using addploar.png
TeeChart 2016 using AddPolar
TeeChart 2016 - polar using addploar.png (171.21 KiB) Viewed 12221 times
TeeChart 2016 - polar.png
TeeChart 2016.0.0.2
TeeChart 2016 - polar.png (149.04 KiB) Viewed 12221 times
TeeChart8 - polar.png
TeeChart V8.0.0.5
TeeChart8 - polar.png (90.32 KiB) Viewed 12221 times

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Issue with Polar Chart

Post by Yeray » Tue Oct 25, 2016 8:03 am

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 12211 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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

NSI-MI
Newbie
Newbie
Posts: 7
Joined: Tue Oct 18, 2016 12:00 am

Re: Issue with Polar Chart

Post by NSI-MI » Fri Oct 28, 2016 7:13 pm

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?
Attachments
Series General tab.png
Series - General Tab
Series General tab.png (22.24 KiB) Viewed 12189 times

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Issue with Polar Chart

Post by Yeray » Mon Oct 31, 2016 9:39 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

NSI-MI
Newbie
Newbie
Posts: 7
Joined: Tue Oct 18, 2016 12:00 am

Re: Issue with Polar Chart

Post by NSI-MI » Mon Oct 31, 2016 3:43 pm

Thank you that worked

Post Reply