Polar Chart turns from round to oval

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
gsachs
Newbie
Newbie
Posts: 7
Joined: Tue Mar 19, 2013 12:00 am

Polar Chart turns from round to oval

Post by gsachs » Wed Jan 22, 2014 5:40 pm

Hi,

a polar chart that was round in all compilers starting from BDS2006 to Delphi XE3 turned from round to oval in XE4.
However, it is not Delphi, other round components are still drawn round.
Please look at the images, the Teechart versions are displayed there.

Regards
Gerhard Sachs
Attachments
Oval.PNG
Oval.PNG (116.78 KiB) Viewed 15675 times
Round.PNG
Round.PNG (91.22 KiB) Viewed 15622 times

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

Re: Polar Chart turns from round to oval

Post by Yeray » Thu Jan 23, 2014 11:21 am

Hello,

Since the TPolarSeries inherits from TCircledSeries, it has a Circled property. Try setting it to true:

Code: Select all

Series1.Circled:=true;
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

gsachs
Newbie
Newbie
Posts: 7
Joined: Tue Mar 19, 2013 12:00 am

Re: Polar Chart turns from round to oval

Post by gsachs » Thu Jan 23, 2014 6:08 pm

That Chart has 4 series, the Circled property checkmark was set on all of them.
The circle responds to the checkmark, it becomes round (or at least nearly round) when the checkmark is NOT set.
Please note that I used the identical files (pas & dfm) for both shreenshots.
So it muste be more than just a property Setting.

Gerhard Sachs

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

Re: Polar Chart turns from round to oval

Post by Yeray » Fri Jan 24, 2014 3:16 pm

Hello Gerhard,

We'd need some extra information because I create a new simple application with the code below and the polar always looks circled:
testPolar.png
testPolar.png (73.04 KiB) Viewed 15549 times

Code: Select all

uses TeePolar, Series;

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  Chart1.Align:=alClient;
  Chart1.View3D:=false;
  for i:=0 to 3 do
    with Chart1.AddSeries(TPolarSeries) as TPolarSeries do
    begin
      FillSampleValues;
      Circled:=true;
    end;
end;
Could you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.

Also please specify what exact TeeChart version are you using.
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

gsachs
Newbie
Newbie
Posts: 7
Joined: Tue Mar 19, 2013 12:00 am

Re: Polar Chart turns from round to oval

Post by gsachs » Sat Jan 25, 2014 10:48 am

While trying tp provide a demo Project I ran in the ever lasting error "Teexxx was compiled with with a different Version of Teeyyy".
I can compile a whole Project with new Delphi/TeeChart comtaining the exact same chart without having this Problem, but as soon as I create a new project and copy the previously working Chart I get this error.
I first have to solve it, but am on Holidays next week.
The TeeChart Version is V2013.08.130521 32Bit VCL, I already notified you about that number in my first Problem Report.
Regards
Gehard Sachs

gsachs
Newbie
Newbie
Posts: 7
Joined: Tue Mar 19, 2013 12:00 am

Re: Polar Chart turns from round to oval

Post by gsachs » Sat Jan 25, 2014 11:59 am

Hello Yeary,

I looked on the whole PC for old TeeChart files but did not find any.
Here are 4 screenshots that shows a list of all TeeChart bpls that exists on this PC.
A binary compare of the same named 32Bit bpls showed they are identical.

The PC is a Virtual machine running on Oracles Virtual Box.
I did a fresh Installation of Windows7/32, Delphi XE4 and TeeChart9.

This is the errror message I receive :
[dcc32 Fataler Fehler] CircledTest.pas(8): F2051 Unit VCLTee.TeePolar wurde mit einer unterschiedlichen Version von VCLTee.Series.TCircledSeries compiliert

It is a new VCL Project with just one Tchart and one Polar Series.

Regards
Gerhard Sachs
Attachments
TeeChart Filelists.jpg
TeeChart Filelists.jpg (177.93 KiB) Viewed 15540 times

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

Re: Polar Chart turns from round to oval

Post by Yeray » Tue Jan 28, 2014 12:15 pm

Hello Gerhard,
gsachs wrote:While trying tp provide a demo Project I ran in the ever lasting error "Teexxx was compiled with with a different Version of Teeyyy".
I can compile a whole Project with new Delphi/TeeChart comtaining the exact same chart without having this Problem, but as soon as I create a new project and copy the previously working Chart I get this error.
When you say you copy the chart, are you copy/pasting it? Please, try to create a new simple project and add a new TChart from the toolbox to the form. Does it build&run?
Then, if it works, add the code I posted above. Does it still work? Is the polar circled?
gsachs wrote:The TeeChart Version is V2013.08.130521 32Bit VCL, I already notified you about that number in my first Problem Report.
I'm sorry, I didn't see I had to look for it in the images.
TeeChart Pro v2012.07 XE3 -> circle
TeeChart Pro v2013.08 XE4 -> oval
gsachs wrote:This is the errror message I receive :
[dcc32 Fataler Fehler] CircledTest.pas(8): F2051 Unit VCLTee.TeePolar wurde mit einer unterschiedlichen Version von VCLTee.Series.TCircledSeries compiliert
Thanks for the screenshots. In the list of packages ("Packages installieren") I see you have some 3rd party tools installed, but these packages shouldn't be interfering with TeeChart if you can select TeeChart packages in the list.
However, I'd suggest you to check the paths and make sure the TeeChart references are correct and they are on the top of the lists. See this post for more details:
http://www.teechart.net/support/viewtop ... 025#p62025
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

gsachs
Newbie
Newbie
Posts: 7
Joined: Tue Mar 19, 2013 12:00 am

Re: Polar Chart turns from round to oval

Post by gsachs » Sat Feb 01, 2014 10:42 am

Hello Yeray,

TeeChart is now running after I did a complete reinstallation.
I still dont understand the reason for the Problem since it was a fresh Installation of both XE4 and TeeChart.
Anyway, it works and I can go back to the Initial Problem.

I attached a small demo Project that shows the oval/round Problem.
When the exe is run in a Virtual machine (Oracle virtual box) the circle is drawn oval.
Running the same exe on the same hardware, but directly in Windows7 shows a round circle.
As you can see, the rectangle is always drawn as rectangle, so it is not just an aspect Ratio Problem.
What is the difference between drawing a circle and a rectangle ?

Regards
Gerhard Sachs
Attachments
Circled_XE4.zip
(204.62 KiB) Downloaded 503 times

gsachs
Newbie
Newbie
Posts: 7
Joined: Tue Mar 19, 2013 12:00 am

Re: Polar Chart turns from round to oval

Post by gsachs » Mon Feb 03, 2014 6:58 pm

Hello Yeray,
this is the answer of Oracles VirtualBox Forum :
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-> If you can demonstrate that any other software has a similar problem, I might believe that the common factor is VirtualBox. Before that - not.

-> Even in the examples you post it's clear that the text is not transformed in the same way, nor the box with the "1 " inside it, nor the square at the center of the circle/ellipse... so what kind of bug would do that?
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
There must be a problem in the Virtualbox displaydriver.
Since a rectangle is drawn correctly, it must have to do with the way TeeChart is drawing circles.
Please give me some more information about that.

Gerhard Sachs

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

Re: Polar Chart turns from round to oval

Post by Yeray » Wed Feb 05, 2014 1:25 pm

Hello Gerrard,

This is what I get in a Windows 7 x64 in a Virtual Box with your application built in a Win8 x64:
test.png
test.png (178.57 KiB) Viewed 15475 times
It looks fine for me 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

gsachs
Newbie
Newbie
Posts: 7
Joined: Tue Mar 19, 2013 12:00 am

Re: Polar Chart turns from round to oval

Post by gsachs » Thu Feb 06, 2014 4:38 pm

Here is a screenshot from my Desktop pc.
Both Virtal Box and VMWare Desktop is running there.
The TeeChart exe is running on the host and both VMs at the same time.
Left is the host, middle VMWare and right virtual box.
The Image should be self explanatory.

Currently I stopped working with Virtual Box.
If VMWare is working as expected, I will move to it and everything is fine.
Otherwise I will drop all VMs and kick out everybody that wants to tell me that Virtual machines are a proven solution.

Gerhard Sachs
Attachments
3 W7_VBox_VMWare.JPG
3 W7_VBox_VMWare.JPG (172.27 KiB) Viewed 15455 times

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

Re: Polar Chart turns from round to oval

Post by Yeray » Fri Feb 07, 2014 11:53 am

Hello Gerhard,

I can't explain why we obtain different results running the same application in similar virtual machines in Virtual Box.
I'm running VB 4.3.6. Is it the same than you?
If so, maybe there's some other difference we have missed. Could you please send us both the sources and the exe you get so we can check the same exe here?
If you have problems sending an exe, or an exe in a zip, you can post your files at our upload page.
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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Polar Chart turns from round to oval

Post by Narcís » Fri Jan 09, 2015 2:22 pm

Hello Gerhard,

For the sake of completeness, a workaround to the issue is being discussed here as well.
Best Regards,
Narcís Calvet / 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