I am trying to find out how to add a point to a TColorSeries and set the color. There is an AddXYZ in the help for TCustom3DSeries that is incorrect.
It says
There is no AColor parameter as far as I can tell, and the help is referring to a surface polygon.The AddXYZ method adds a new point to the Surface Series.
You can also use the Surface OnGetYValue event to supply Y values for a given pair of X,Z values.
Specific colors can be assigned to each Surface polygon by using the AColor parameter.
the way that we added the colors are
Code: Select all
for i:=0 to 5 do
for j:=0 to 5 do
begin
idx:=series1.addXYZ(i,0,j);
series1.ValueColor[idx]:=clRed;
end;
Code: Select all
ColorGridSeries.AddXYZ(x,y,someColor)