Jump to content
Software FX Community

Load Data into a Map Graphic


Armando

Recommended Posts

Hi, 

How can I load data into  a Map Graphic using arrays or collections? All the examples that I have seen are using .txt files and .xml files. Is there any way to load map graphic? Is there any example of how loading map graphic?

 Thanks 

Link to comment
Share on other sites

You mean the data? A map, like a chart, can get data from diferent data sources includding arrays, collections, data controls, datasets, text files, and more.

The only diference with a map is that the data must contain one string field that identifies the map element to which that  piece of data belongs.

Here is an example of using arrays:

ICollection[] data = new ICollection[3];

data[0] =

new double[] { 10,20,30,40 };data[1] = new double[] { 60,70,80 };

data[2] =

new string[] { "FL","LA","GA","NY" };ListProvider lstProvider = new ListProvider(data);

chart1.DataSourceSettings.DataSource = lstProvider;

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...