Armando Posted July 17, 2007 Report Share Posted July 17, 2007 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 More sharing options...
Frank Posted July 17, 2007 Report Share Posted July 17, 2007 What do you mean by "Map Graphic"? Link to comment Share on other sites More sharing options...
Armando Posted July 18, 2007 Author Report Share Posted July 18, 2007 I'm using Chart Fx Maps (maps of USA, Europe, ...). Link to comment Share on other sites More sharing options...
Frank Posted July 18, 2007 Report Share Posted July 18, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.