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 1291 - TChartSeriesList method MaxYValue doesn't return any Y value with TIsoSurfaceSerie
Summary: TChartSeriesList method MaxYValue doesn't return any Y value with TIsoSurface...
Status: RESOLVED NOTABUG
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: 150120
Hardware: PC Windows
: Normal major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-04 07:45 EDT by Johan DEVELON
Modified: 2015-10-21 06:41 EDT (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johan DEVELON 2015-09-04 07:45:41 EDT
If you use a TChartSeriesList, the method to get the MaxYvalue from a IsoSurfaceSerie return at each time the MaxZValue and not the Y as demanded.

//Example for testing 
var
MyList:TChartSeriesList;
MySeries:TIsoSurfaceSeries;
ValX,ValZ:integer;
begin
MyList:=TChartSeriesList.Create;
ValX:=5;
MySeries:= TIsoSurfaceSeries.Create(self);
for ValZ:=0 to 10 do MySeries.AddXYZ(ValX,ValX*ValZ,ValZ);
MyList.Add(MySeries);
showmessage(
'X='+floattostr(MyList[0].MaxXValue)+chr(13)
'Y='+floattostr(MyList[0].MaxYValue)+chr(13)
'Z='+floattostr(MyList[0].MaxZValue)
);

MySeries.Free;
MyList.Free;
end;

Not tested with other 3D series.
used with delphi XE7 -32bits
Comment 1 sandra pazos 2015-10-21 06:41:33 EDT
Hello Johan,

Sorry for the delay. I would like inform you that the problem you are experiencis isn’t a bug. The property MaxYValue works only when the 3D Series is added in Chart.  To fix the problem, you should use the YValues Directly instead of MaxYValues. The code below shows you how: 
showmessage('X='+floattostr(Series1.XValues.MaxValue)+chr(13)+'Y='+floattostr(Series1.YValues.MaxValue)+chr(13)+'Z='+floattostr(Series1.ZValues.MaxValue));

Thanks in advance
Regards