Im trying to make a TIsoSurface serie in the chart using this kind of code below:
Code: Select all
...
with Series1 do
begin
for i := 1 to 29 do
for j := 1 to 29 do
AddXYZ(i, MyMatrix[i, j], j);
for k := 1 to 15 do
AddPalette(MyScaleValues[k], MyColors[k]);
end;
But I need something that works with a rule like this: palete(FromStartValue, color);
If I give a next color, of my sequence colors, the chart match with what I want, but the Legend does not match the color with the correct value; and if I do like I'm doing the Legend gets OK, but the colors in chart does not match with my needs.
Is there some way, property or code, that do the trick?