Page 1 of 2

TChart disabled on 64Bit iOS platform

Posted: Fri Jun 12, 2015 12:04 pm
by 16561419
Hello,

after installation of the latest TeeChart FMX from souces, via the TeeRecompile.exe TChart is diabled for the 64Bit iOS platform.
TeeChartDisabled.png
teeChart disabled for 64Bit iOS platform
TeeChartDisabled.png (14.55 KiB) Viewed 34518 times
Is that done on purpose, because there are problems ?

best regards and thanks

Re: TChart disabled on 64Bit iOS platform

Posted: Fri Jun 12, 2015 1:29 pm
by narcis
Hello X-Ray,

If your application targets an iOS 64-bit device, TChart is still available there and builds correctly. You need an iOS 64-bit device to run it though. Did TeeRecompile run fine for iOS 64-bit device? Does this work for you?

Re: TChart disabled on 64Bit iOS platform

Posted: Fri Jun 12, 2015 1:51 pm
by 16561419
I have an iPhone 6 and other components are enabled for the 64Bit iOS platform.
Also the TeeRecompile did run fine for the 64Bit iOS platform.
There is actually more trouble, that is why I am asking. I also have a multi device application that contains a TChart and that now crashes on startup when compiled for 64Bit iOS. I could somehow connect the crash to TChart. Finally I was able to create an iOS 64bit app that just contains a design time TChart and nothing else and that crashes too on startup. I have attached the small project.
TChartTest.zip
iOS project where 64Bit executable crashes on startup
(10.17 KiB) Downloaded 1475 times
best regards

Re: TChart disabled on 64Bit iOS platform

Posted: Fri Jun 12, 2015 2:15 pm
by narcis
Hi X-Ray,

Thanks for the info. I could reproduce the problem here and we will investigate it. We will get back to you when we have further news.

Re: TChart disabled on 64Bit iOS platform

Posted: Fri Jun 12, 2015 3:17 pm
by narcis
Hi X-Ray,
X-Ray wrote: after installation of the latest TeeChart FMX from souces, via the TeeRecompile.exe TChart is diabled for the 64Bit iOS platform.
This has been fixed for the following maintenance release.
X-Ray wrote: There is actually more trouble, that is why I am asking. I also have a multi device application that contains a TChart and that now crashes on startup when compiled for 64Bit iOS. I could somehow connect the crash to TChart. Finally I was able to create an iOS 64bit app that just contains a design time TChart and nothing else and that crashes too on startup. I have attached the small project.
A simple design-time app works fine for us here. However, your app crashes and added the problem to bugzilla (bug #1238).

Re: TChart disabled on 64Bit iOS platform

Posted: Mon Jun 15, 2015 6:39 am
by 16561419
Hi Narcis,

I just created a new/fresh multi device application and put instances of a TChart, a TSurfaceSeries, a TColorGridSeries and a TTeeCommander on the empty form. When I try to run the 64-bit version on my iPhone6 it crashes too on startup. So this is a showstopper on iOS. Please let me know of any workaround to get this running.

best regards

Re: TChart disabled on 64Bit iOS platform

Posted: Mon Jun 15, 2015 8:15 am
by narcis
Hello,

The problem is TeeCommander. Following the steps you mentioned without a TTeeCommander component works fine.

Re: TChart disabled on 64Bit iOS platform

Posted: Tue Jun 16, 2015 6:30 am
by 16561419
Hi Narcis,

yes indeed, now that I removed TeeCommander the 64-bit app starts up fine.
Do you have a quick example how to set the TChart in rotation or zoom mode by a button click without usage of the TeeCommander component ?

best regards

Re: TChart disabled on 64Bit iOS platform

Posted: Tue Jun 16, 2015 7:29 am
by narcis
Hi X-Ray,

Yes, this can be done like this:

Code: Select all

procedure TForm1.RotateBtnClick(Sender: TObject);
begin
  Chart1.Aspect.Orthogonal:=False;
  Chart1.Aspect.Rotation:=15;
  Chart1.Aspect.Elevation:=300;
end;

procedure TForm1.ZoomBtnClick(Sender: TObject);
begin
  Chart1.Aspect.Zoom:=60;
end;
You could use slider controls to modify those values as well.

Re: TChart disabled on 64Bit iOS platform

Posted: Tue Jun 16, 2015 7:44 am
by 16561419
Hi Narcis,

But how do I set the Chart into the zoom or rotate mode, so that it can be zoomed or rotated by the touch and dragging with a finger ?
You are just setting the rotation angle and the zoom % by code in that example, right?

best regards,

Thomas

Re: TChart disabled on 64Bit iOS platform

Posted: Tue Jun 16, 2015 9:02 am
by narcis
Hi Thomas,
X-Ray wrote: You are just setting the rotation angle and the zoom % by code in that example, right?
Yes, exactly.
X-Ray wrote: You are just setting the rotation angle and the zoom % by code in that example, right?
You should use the gesturing functionality in Delphi as explained in those articles:

http://docwiki.embarcadero.com/RADStudi ... g_Overview
http://docwiki.embarcadero.com/CodeExam ... s_(Delphi)

I'm also attaching a practical gestures example with TeeChart.

Re: TChart disabled on 64Bit iOS platform

Posted: Wed Jun 17, 2015 8:52 am
by 16561419
Hi Narcis,

Thank you, the Gestures example was very helpful !

best regards

Re: TChart disabled on 64Bit iOS platform

Posted: Fri Jun 19, 2015 2:55 pm
by narcis
Hi X-Ray,

You're very welcome. I'm glad to hear that. It actually inspired a blog post about Delphi gestures with TeeChart.

Re: TChart disabled on 64Bit iOS platform

Posted: Tue Sep 08, 2015 9:47 am
by 16561419
Hello,

there are problems with axes titles in 3D that got worse with the latest release 2015.16:
Foto 08.09.15 11 36 51.png
Foto 08.09.15 11 36 51.png (131.62 KiB) Viewed 33761 times
I used the gesture example and added titles for the X-Axis (Bottom Axis), Y-Axis (Left Axis) and the Z-Axis (Depth Axis). What you see is (on a iPhone 6):

1) The titles are not aligned with the axis labels (This works well in the VCL version)
2) The distance between the axis labels and the axis title is too short (how can I change this ?)
3) The Z-Axis title has disappeared or is somewhere far away

Are there any fixes for this ?

best regards,

X-ray

Re: TChart disabled on 64Bit iOS platform

Posted: Wed Sep 09, 2015 1:32 pm
by yeray
Hello,
X-Ray wrote:there are problems with axes titles in 3D that got worse with the latest release 2015.16:
I've tried it with v2015.15 and v2015.16 in Android and it seems to give the same result. Could you please specify what two versions to compare?
X-Ray wrote:1) The titles are not aligned with the axis labels (This works well in the VCL version)
I get the same result with VCL:
vcl_surfa.png
vcl_surfa.png (49.96 KiB) Viewed 33731 times
X-Ray wrote:2) The distance between the axis labels and the axis title is too short (how can I change this ?)
I'm afraid this is not possible.
Instead, you could draw your title or text manually. Ie:

Code: Select all

procedure TForm1.Chart1BeforeDrawSeries(Sender: TObject);
var yOffset, tmpZ, tmpW: Integer;
    pos: TPointF;
    st: string;
begin
  yOffset:=10;

  with Chart1.Axes.Bottom do
  begin
    st:=Title.Caption;
    Chart1.Canvas.AssignFont(Title.Font);
    tmpW:=Chart1.Canvas.TextWidth(st);

    pos.X:=IStartPos + ((IEndPos-IStartPos) div 2);// - (tmpW div 2);
    pos.Y:=Round(Chart1.Axes.Left.IEndPos + Abs(LabelsFont.Size) + TickLength + 7);
    tmpZ:=Round(Chart1.Width3D * ZPosition * 0.01);
  end;

  pos:=Chart1.Canvas.Calculate3DPosition(pos,tmpZ);
  pos.Y:=pos.Y+yOffset;

  Chart1.Canvas.TextOut(pos.X, pos.Y, st);
end;
X-Ray wrote:3) The Z-Axis title has disappeared or is somewhere far away
The depth axis is not visible. It will appear if you make it visible:

Code: Select all

Chart1.Axes.Depth.Visible:=true;