Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 826 - Having a Chart3D with a Series, it crashes as soon as you make the depth axis visible
Summary: Having a Chart3D with a Series, it crashes as soon as you make the depth axis...
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: OpenGL 3D (show other bugs)
Version: 140512
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-03 07:08 EDT by yeray alonso
Modified: 2014-07-04 05:38 EDT (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2014-07-03 07:08:38 EDT
This crashes:

uses TeeSurfa;

var Chart3D1: TChart3D;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart3D1:=TChart3D.Create(Self);
  Chart3D1.Parent:=Self;
  Chart3D1.Align:=alClient;

  Chart3D1.Chart.AddSeries(TSurfaceSeries).FillSampleValues();

  Chart3D1.Chart.Axes.Depth.Visible:=true;
end;
Comment 3 yeray alonso 2014-07-04 05:38:21 EDT
This workaround seems to work fine for me here:

uses TeeChart3D, TeeSurfa;

var Chart3D1: TChart3D;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart3D1:=TChart3D.Create(Self);
  Chart3D1.Parent:=Self;
  Chart3D1.Align:=alClient;

  Chart3D1.Chart.AddSeries(TSurfaceSeries).FillSampleValues();

  Chart3D1.Chart.Axes.Depth.Visible:=true;

  Chart3D1.Chart.OnBeforeDrawAxes:=ChartBeforeDrawAxes;
end;

procedure TForm1.ChartBeforeDrawAxes(Sender: TObject);
begin
  Chart3D1.Chart.Canvas.View3DOptions:=Chart3D1.Chart.View3DOptions;
end;