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

Summary: TChartSeriesList method MaxYValue doesn't return any Y value with TIsoSurfaceSerie
Product: VCL TeeChart Reporter: Johan DEVELON <johandevelon>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED NOTABUG    
Severity: major CC: sandra
Priority: Normal    
Version: 150120   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: IsoSurface Delphi / C++ Builder RAD IDE Version: RAD XE7

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