Map series and included shapes

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
jonsberndt
Newbie
Newbie
Posts: 21
Joined: Wed May 02, 2007 12:00 am
Location: Houston, TX

Map series and included shapes

Post by jonsberndt » Wed Sep 12, 2007 3:37 pm

I'm trying to figure out how to draw shapes/polygons in the map series. I've looked at the example (TeeSHP.cs), but that isn't getting me anywhere. The API documentation is fine, but it doesn't help at all when I am trying to understand the general approach. Is there not any documentation other than the API documentation?

Here's the general approach I am trying. I have created a chart and a map series in the GUI designer. When my plotting window is created and shown, I read data from a file. The data consists of a list of polygon vertex points. I add those to the Map series, but when the chart is displayed, no shapes are shown.

Code: Select all

Steema.TeeChart.Styles.Polygon poly = new Steema.TeeChart.Styles.Polygon(map1.Chart);

poly.Add(data[0], data[1]);
poly.Add(data[2], data[3]);
poly.Add(data[4], data[5]);
poly.Add(data[6], data[7]);
poly.Color = Color.FromArgb(128, 128, 128);

map1.Shapes.Add(poly);
What am I missing here?

Jon

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

Post by Narcís » Thu Sep 13, 2007 7:47 am

Hi Jon,

Have you looked at the TeeChart help file available at TeeChart's program group? Also features demo and tutorials are provided.

Regarding Map series, you can see some example in the threads below:

http://www.teechart.net/support/viewtopic.php?t=3718
http://www.teechart.net/support/viewtopic.php?t=4794
http://www.teechart.net/support/viewtopic.php?t=5373

If this doesn't help don't hesitate to let us know.
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

jonsberndt
Newbie
Newbie
Posts: 21
Joined: Wed May 02, 2007 12:00 am
Location: Houston, TX

Poor documentation for TeeChart

Post by jonsberndt » Thu Sep 13, 2007 6:55 pm

narcis wrote:Hi Jon,

Have you looked at the TeeChart help file available at TeeChart's program group? Also features demo and tutorials are provided.

If this doesn't help don't hesitate to let us know.
The TeeChart Programmer's Guide is a somewhat useful, but not very complete, help file. For instance, the Polygon class members and functions are described briefly, but there is no overview on how the Polygon class is supposed to be used. The examples are sometimes partially helpful. I did not find a tutorial that answered my questions.

What would help is to have a User's Guide that describes the process of creating all of the types of charts. This is a critical omission in a product such as TeeChart.

Jon Berndt

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

Post by Narcís » Fri Sep 14, 2007 7:52 am

Hi Jon,

Thanks for your suggestion Jon.

Could you achieve what you were trying with the examples at the forums I posted?

Thanks in advance.
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