Page 1 of 1

Refresh Z values list

Posted: Tue Feb 03, 2009 3:16 pm
by 10051462
Hi all,
I have problem refreshing Z values list in TWorldMap series.

At runtime i must change completelly the Z values, so with a for cycle i locate the label in my database and refresh the Z values with a runtime chosed field (so max can change from 15000 to 10 for example!).

The main problem is that, if i do that, the maxZValue and minZValue aren't refreshed with the new values inserted.

There is a function to refresh this values without cleaning and recreating the values list? Because i think that the color range is based on this values and if max and min aren't refreshed all the color range is wrong.

Have also tried at runtime with TeeCommander but it's impossible to correct it, also using color palette instead of color range.

Posted: Mon Feb 09, 2009 1:18 pm
by Pep
Hi Manuel,

you could use the Modified property :

Code: Select all

procedure TForm1.Button2Click(Sender: TObject);
var i : integer;
begin
// Change z values
for i :=0 to Series1.Count -1 do
  Series1.ZValues.Value[random(Series1.Count)] := random(1000);

Series1.MandatoryValueList.Modified := true;
Chart1.Invalidate;
end;

Posted: Mon Feb 09, 2009 1:46 pm
by 10051462
tried and works perfecly!!!

many thanks! :wink:

Posted: Mon Feb 09, 2009 1:51 pm
by 10051462
ah, I forget, many compliments for this great support, it's the best, kinder and faster seen before!!!! 8)

Posted: Wed Feb 11, 2009 6:16 pm
by Pep
Hi Manuel,

thanks for your comments, it's a pleasure to know that our customers are satisfied :wink: