Refresh Z values list

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
sicorspa
Newbie
Newbie
Posts: 43
Joined: Tue Jan 13, 2009 12:00 am

Refresh Z values list

Post by sicorspa » Tue Feb 03, 2009 3:16 pm

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.

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Feb 09, 2009 1:18 pm

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;

sicorspa
Newbie
Newbie
Posts: 43
Joined: Tue Jan 13, 2009 12:00 am

Post by sicorspa » Mon Feb 09, 2009 1:46 pm

tried and works perfecly!!!

many thanks! :wink:

sicorspa
Newbie
Newbie
Posts: 43
Joined: Tue Jan 13, 2009 12:00 am

Post by sicorspa » Mon Feb 09, 2009 1:51 pm

ah, I forget, many compliments for this great support, it's the best, kinder and faster seen before!!!! 8)

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Feb 11, 2009 6:16 pm

Hi Manuel,

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

Post Reply