SURFACE CHART ISSUE
SURFACE CHART ISSUE
As I was making a surface chart, I encountered an issue with it.
I attached a file that describes the situation that I am facing.
I would like to know how I would be able to fix this issue.
Thank you for your cooperation.
I attached a file that describes the situation that I am facing.
I would like to know how I would be able to fix this issue.
Thank you for your cooperation.
- Attachments
-
- Surface Chart Issue.zip
- (315.45 KiB) Downloaded 821 times
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: SURFACE CHART ISSUE
Hello,
Thank you for the Word document describing your issue. Would you please be so kind as to give us the data to used to generate this chart? You can easily export the data to a text file, for example, as can be seen in the Feature Demo shipped with TeeChart:
Thank you for the Word document describing your issue. Would you please be so kind as to give us the data to used to generate this chart? You can easily export the data to a text file, for example, as can be seen in the Feature Demo shipped with TeeChart:
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: SURFACE CHART ISSUE
I would like to attach a project file to show what I meant, but I was not able to do so because of the size limitation up to 502 kb.
It would be greatly appreciated if I would be provided an e-mail address, so I can send my project file to you.
Thank you.
It would be greatly appreciated if I would be provided an e-mail address, so I can send my project file to you.
Thank you.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: SURFACE CHART ISSUE
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: SURFACE CHART ISSUE
With userID as PIDOTECH and email as kjh0213@pidotech.com, I have sent a zip file called WindowsFormsApplication1.zip to your server.
I look forward to finding a solution for this issue.
Thank you.
I look forward to finding a solution for this issue.
Thank you.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: SURFACE CHART ISSUE
Hello,
Thank you for your project.
In order to confirm the extent of this issue, I have recreated your project in TeeChart Pro for VCL, the code of which is the basis of TeeChart Pro for .NET. Using the following code (for your reference):
I obtain the following Chart:
could I please ask you two questions:
1) are the shapes of the two series those that you would expect?
2) can you please confirm the overlap issue that also occurs in TeeChart for .NET?
Thank you for your project.
In order to confirm the extent of this issue, I have recreated your project in TeeChart Pro for VCL, the code of which is the basis of TeeChart Pro for .NET. Using the following code (for your reference):
Code: Select all
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, VclTee.TeeGDIPlus, VCLTee.TeEngine,
Vcl.ExtCtrls, VCLTee.TeeProcs, VCLTee.Chart, Vcl.StdCtrls, VCLTee.TeCanvas, VCLTee.TeExport,
VCLTee.TeePDFCanvas, VCLTee.TeeTools, VCLTee.TeeSurfa;
procedure TForm1.FormCreate(Sender: TObject);
var bottomSurface,leftSurface:TChartAxis;
aspect:TView3DOptions;
surface1, surface2:TSurfaceSeries;
procedure AddFromFile(Series:TSurfaceSeries; MyPath:String);
var strings:TStringList;
t:Integer;
line:String;
strArray : TArray<String>;
charArray : Array[0..0] of String;
format:TFormatSettings;
begin
try
strings := TStringList.Create;
strings.LoadFromFile(MyPath);
charArray[0]:=',';
format.DecimalSeparator:='.';
for t := 0 to strings.Count-1 do
begin
line:=strings[t];
strArray:=line.Split(charArray);
Series.AddXYZ(StrToFloat(strArray[0], format), StrToFloat(strArray[1], format), StrToFloat(strArray[2], format));
end;
finally
strings.Free;
end;
end;
begin
Chart1.Tools.Add(TRotateTool);
bottomSurface:=Chart1.Axes.Bottom;
bottomSurface.Automatic:=false;
bottomSurface.Maximum := 200;
bottomSurface.Minimum := 1;
leftSurface := Chart1.Axes.Depth;
leftSurface.Automatic := false;
leftSurface.Maximum := 180;
leftSurface.Minimum := 1;
Chart1.View3D:=true;
Chart1.Chart3DPercent:=100;
aspect:=Chart1.Aspect;
aspect.Orthogonal := false;
aspect.Elevation := 330;
aspect.Rotation := 330;
aspect.Zoom := 70;
Chart1.Axes.Depth.Visible:=true;
surface1:=TSurfaceSeries.Create(Self);
surface1.IrregularGrid:=true;
surface1.ParentChart:=Chart1;
AddFromFile(surface1, '..\..\surface1.txt');
surface2:=TSurfaceSeries.Create(Self);
surface2.IrregularGrid:=true;
surface2.ParentChart:=Chart1;
AddFromFile(surface2, '..\..\surface2.txt');
end;
could I please ask you two questions:
1) are the shapes of the two series those that you would expect?
2) can you please confirm the overlap issue that also occurs in TeeChart for .NET?
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: SURFACE CHART ISSUE
1. No, these shapes are not the shapes that we want.
The series that appears to be on the top of another series should not be kind of transparent. It must entirely cover the bottom series.
2. Yes. This overlap issue happens in Steema Net.
The series that appears to be on the top of another series should not be kind of transparent. It must entirely cover the bottom series.
2. Yes. This overlap issue happens in Steema Net.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: SURFACE CHART ISSUE
Okay, but to be clear - do you expect the two series to render as flat surfaces?PIDOTECH wrote:1. No, these shapes are not the shapes that we want.
The series that appears to be on the top of another series should not be kind of transparent. It must entirely cover the bottom series.
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: SURFACE CHART ISSUE
What do you mean by flat surfaces?
I would appreciate if you can explain about flat surfaces.
What I want to achieve here is that a part of one series above any part of another series must be displayed by itself meaning that any bottom part of another series must be completely hidden from the view.
I would appreciate if you can explain about flat surfaces.
What I want to achieve here is that a part of one series above any part of another series must be displayed by itself meaning that any bottom part of another series must be completely hidden from the view.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: SURFACE CHART ISSUE
By a 'flat surface' I mean a plane. In the image in my last post we can see two intersecting planes - is this how you expect your data to be represented, or do you have no clear idea of the type of surface the data represents?PIDOTECH wrote:What do you mean by flat surfaces?
I would appreciate if you can explain about flat surfaces.
Yes - unfortunately this is not going to be possible in GDI+, neither in VCL nor in .NET. The only alternative here is to use TeeChart's OpenGL canvas.PIDOTECH wrote:What I want to achieve here is that a part of one series above any part of another series must be displayed by itself meaning that any bottom part of another series must be completely hidden from the view.
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |