Help with Map Series data

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
santycg
Newbie
Newbie
Posts: 15
Joined: Mon Aug 13, 2007 12:00 am

Help with Map Series data

Post by santycg » Tue Oct 09, 2007 11:12 am

Hi!

What is the basic configuration process to fill the Map values?
For example, I add a 'Spain' Series to the TChart component in desingtime.
Then, at runtime, I want to fill or modify the values of each state or poligon. How can I do it?

I have been trying it either manually and using a DataSource but I can't get it to work :(

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Oct 09, 2007 11:43 am

Hi santycg,

You can access the shapes using either its index or name, for example:

Code: Select all

  Series1.Shapes[0].Color:=clRed;
  Series1.Shapes.ByName['Girona'].Color:=clLime;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

santycg
Newbie
Newbie
Posts: 15
Joined: Mon Aug 13, 2007 12:00 am

Post by santycg » Wed Oct 10, 2007 11:18 am

Perfect!

BTW... Is it possible to hide the Marks with "0"/empty value?

Some poligons have no value/data and I don't want to show the Mark of that poligons.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Oct 10, 2007 11:32 am

Hi santycg,

You can use OnGetMarkText event and set to an empty string those marks you don't want to be visible.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply