Older PolarSeries not compatible with TeeChart 2015

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
SE_KG
Newbie
Newbie
Posts: 4
Joined: Wed Dec 03, 2014 12:00 am

Older PolarSeries not compatible with TeeChart 2015

Post by SE_KG » Tue Sep 22, 2015 12:04 pm

I'm just upgrading my software from Teechart Pro 8 to TeeChart Pro 2015.

When loading charts generated with TeeChart 8 with PolarSeries in TeeChart 2015 the data points of the PolarSeries are not recognized correctly.

To reproduce the behaviour I generated one polarseries with TeeChart Office 3.0 and saved it as Polar 2007.tee
Polar 2007.zip
(712 Bytes) Downloaded 548 times
.
Then I opened it with TeeChart Office 4.1.

In the attached picture you can see the difference between opening the same chart with the older and newer version of TeeChart.
When looking at the data it is obvious that the angle and values of the points are not the same anymore.
PolarSeries 8 - 2015.jpg
PolarSeries 8 - 2015.jpg (359.07 KiB) Viewed 7935 times
Best regards

Heinz

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

Re: Older PolarSeries not compatible with TeeChart 2015

Post by Yeray » Thu Sep 24, 2015 8:57 am

Hello Heinz,

I've added a ticket in the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1318
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

SE_KG
Newbie
Newbie
Posts: 4
Joined: Wed Dec 03, 2014 12:00 am

Re: Older PolarSeries not compatible with TeeChart 2015

Post by SE_KG » Thu Sep 24, 2015 11:44 am

Hello Yeray,

many thanks for your confirmation that it is a bug, but we do have a lot of polar data produced with TeeChart 8.

Is there any chance to get a workaround or a suggestion for modifying the sourcecode?
Would exchanging the current TeePolar-unit with the old one be a solution to be compatible with the old data or would this cause problems in other areas?


There are some properties regarding the axes changed in the PolarSeries which will cause confusion:
F.E. with TeeChart 8 the properties BottomAxis.Logarithmic and BottomAxis.Inverted had no influence on a chart with a PolarSeries and in my projects BottomAxis was always set to Not visible.
But with the current version these properties do affect the chart even if the BottomAxis is not shown. So when in the old charts these properties are checked because they had no negative effect to the resulting chart the charts imported with Teechart 2015 will look strange to the user.

Best regards

Heinz

SE_KG
Newbie
Newbie
Posts: 4
Joined: Wed Dec 03, 2014 12:00 am

Re: Older PolarSeries not compatible with TeeChart 2015

Post by SE_KG » Mon Sep 28, 2015 8:07 am

Hello Yeray,

the problem has it's origin in the TeEngine-Unit and the procedure ReadSeriesPoint. Modifying "read the rest of list values" as described in the attachement allows to read old and new polar data,
but I do not yet know how to differentiate reliable if the data is older than v9 or not.
TeEngine.jpg
TeEngine.jpg (112.64 KiB) Viewed 7848 times
Do you have a suggestion for the if-statement to work properly for all series?


Best regards
Heinz

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

Re: Older PolarSeries not compatible with TeeChart 2015

Post by Yeray » Mon Sep 28, 2015 9:47 am

Hi Heinz,
SE_KG wrote:Is there any chance to get a workaround or a suggestion for modifying the sourcecode?
Would exchanging the current TeePolar-unit with the old one be a solution to be compatible with the old data or would this cause problems in other areas?
I'm afraid I can't tell you a workaround for it. Substituting the TeePolar unit in TeeChart v2015.16 for the old version shipped with TeeChart v8 doesn't compile.
Note you can add your mail to the CC list to be automatically notified when an update arrives.
http://bugs.teechart.net/show_bug.cgi?id=1318
SE_KG wrote:There are some properties regarding the axes changed in the PolarSeries which will cause confusion:
F.E. with TeeChart 8 the properties BottomAxis.Logarithmic and BottomAxis.Inverted had no influence on a chart with a PolarSeries and in my projects BottomAxis was always set to Not visible.
But with the current version these properties do affect the chart even if the BottomAxis is not shown. So when in the old charts these properties are checked because they had no negative effect to the resulting chart the charts imported with Teechart 2015 will look strange to the user.
I'm not sure to understand why these properties where stored if you expected them to do nothing. But anyway, you could force them to have the values you wish after loading your tee files, isn't it? Ie somthing like this:

Code: Select all

if Chart1[0] is TPolarSeries then
begin
  Chart1.Axes.Bottom.Logarithmic:=false;
  Chart1.Axes.Bottom.Inverted:=false;
end;
SE_KG wrote:the problem has it's origin in the TeEngine-Unit and the procedure ReadSeriesPoint. Modifying "read the rest of list values" as described in the attachement allows to read old and new polar data,
but I do not yet know how to differentiate reliable if the data is older than v9 or not.

Do you have a suggestion for the if-statement to work properly for all series?
I'm not sure that's the best way to fix this but your investigations may help us to find a solution for that ticket, so I'd like to thank you for sharing them.
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

Post Reply