Page 1 of 1

Map series and included shapes

Posted: Wed Sep 12, 2007 3:37 pm
by 9094964
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

Posted: Thu Sep 13, 2007 7:47 am
by narcis
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.

Poor documentation for TeeChart

Posted: Thu Sep 13, 2007 6:55 pm
by 9094964
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

Posted: Fri Sep 14, 2007 7:52 am
by narcis
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.