SURFACE CHART ISSUE

TeeChart for Microsoft Visual Studio.Net, Xamarin Studio (Android, iOS & Forms) & Monodevelop.

SURFACE CHART ISSUE

Postby PIDOTECH » Wed Sep 06, 2017 5:50 am

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.
Attachments
Surface Chart Issue.zip
(315.45 KiB) Downloaded 15 times
PIDOTECH
Newbie
Newbie
 
Posts: 5
Joined: Wed Apr 26, 2017 12:00 am

Re: SURFACE CHART ISSUE

Postby Christopher » Wed Sep 06, 2017 7:31 am

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:

TeeChartNetExamples_2017-09-06_09-27-25.png
TeeChartNetExamples_2017-09-06_09-27-25.png (189.31 KiB) Viewed 326 times
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
Christopher
Advanced
 
Posts: 972
Joined: Fri Nov 15, 2002 12:00 am

Re: SURFACE CHART ISSUE

Postby PIDOTECH » Tue Sep 12, 2017 6:57 am

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.
PIDOTECH
Newbie
Newbie
 
Posts: 5
Joined: Wed Apr 26, 2017 12:00 am

Re: SURFACE CHART ISSUE

Postby Christopher » Tue Sep 12, 2017 7:42 am

Hello -

You can upload your files/projects to:

http://www.steema.cat/upload/
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
Christopher
Advanced
 
Posts: 972
Joined: Fri Nov 15, 2002 12:00 am

Re: SURFACE CHART ISSUE

Postby PIDOTECH » Wed Sep 13, 2017 7:23 am

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.
PIDOTECH
Newbie
Newbie
 
Posts: 5
Joined: Wed Apr 26, 2017 12:00 am

Re: SURFACE CHART ISSUE

Postby Christopher » Wed Sep 13, 2017 5:22 pm

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):

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;


I obtain the following Chart:
Image

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
Christopher
Advanced
 
Posts: 972
Joined: Fri Nov 15, 2002 12:00 am

Re: SURFACE CHART ISSUE

Postby PIDOTECH » Thu Sep 14, 2017 3:45 am

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.
PIDOTECH
Newbie
Newbie
 
Posts: 5
Joined: Wed Apr 26, 2017 12:00 am

Re: SURFACE CHART ISSUE

Postby Christopher » Thu Sep 14, 2017 6:18 am

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.


Okay, but to be clear - do you expect the two series to render as flat surfaces?
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
Christopher
Advanced
 
Posts: 972
Joined: Fri Nov 15, 2002 12:00 am

Re: SURFACE CHART ISSUE

Postby PIDOTECH » Fri Sep 15, 2017 1:31 am

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.
PIDOTECH
Newbie
Newbie
 
Posts: 5
Joined: Wed Apr 26, 2017 12:00 am

Re: SURFACE CHART ISSUE

Postby Christopher » Fri Sep 15, 2017 7:46 am

PIDOTECH wrote:What do you mean by flat surfaces?
I would appreciate if you can explain about flat surfaces.


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 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.


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.
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
Christopher
Advanced
 
Posts: 972
Joined: Fri Nov 15, 2002 12:00 am


Return to .NET

Who is online

Users browsing this forum: No registered users and 5 guests