Page 1 of 1

Help with Map Series data

Posted: Tue Oct 09, 2007 11:12 am
by 10046462
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 :(

Posted: Tue Oct 09, 2007 11:43 am
by narcis
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;

Posted: Wed Oct 10, 2007 11:18 am
by 10046462
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.

Posted: Wed Oct 10, 2007 11:32 am
by narcis
Hi santycg,

You can use OnGetMarkText event and set to an empty string those marks you don't want to be visible.