Page 1 of 1

How Contour serie is used???

Posted: Wed Sep 04, 2013 1:50 pm
by 15059326
hi,

we are currently using Tee-Chart Active X v8. and we need to draw like a kind of maps with some data that we have ,
the map that we want is a 2D map, but we were don't know how Countour series manage the coordenates for doing the drawing part.

if you could help us on that with an example we would apreciate it.

Regards
David.

Re: How Contour serie is used???

Posted: Thu Sep 05, 2013 9:23 am
by narcis
Hello David,

My first recommendation is that you need to populate such 3D series in a grid-like manner, as I explained here. This is a Delphi (VCL) thread but the same applies to the ActiveX version. You'll find several contour series examples at the All Features\Welcome!\Chart Styles\Extended\Contour section in the features demo, available at TeeChart's program group.

Re: How Contour serie is used???

Posted: Fri Sep 06, 2013 3:16 pm
by 15059326
hello Narcis,

I read the other reply and I'm not sure I'm using the correct series,
the kind of map that I want to do is something like this
maps2.jpg
maps2.jpg (26.18 KiB) Viewed 32151 times
,
in my case the black dots would be the geographical coordinates of a field and the contour of each level depends on a Y value.

this kind of maps could be done using Contour series?




Regards,
David

Re: How Contour serie is used???

Posted: Mon Sep 09, 2013 12:45 pm
by yeray
Hi David,

Once you have a Contour series populated (as Narcís explained above) you can add an extra Point series to draw the points you wish.
Here it is an example:

Code: Select all

  TChart1.Aspect.View3D = False

  Dim x, z As Integer
  TChart1.AddSeries scContour
  With TChart1.Series(0).asContour
    For x = 0 To 10
      For z = 0 To 5
        .AddXYZ x, Rnd * 10, z, "", clTeeColor
      Next z
    Next x
        
    .IrregularGrid = True
  End With
  
  TChart1.AddSeries scPoint
  For x = 0 To 10
    TChart1.Series(1).AddXY x, Rnd * 5, "", clTeeColor
  Next x
test.png
test.png (90.55 KiB) Viewed 32127 times

Re: How Contour serie is used???

Posted: Wed Sep 25, 2013 4:57 pm
by 15059326
hi everyone,

the other posts helped me a lot,
the thing that i hven't figure out is for example drawing a circle using contour on the center of the chart,
if some could help me with that i'll apreciate it.

i nedd to draw a specific figure (circle , triangle ,square ) any of them.
this could be done??

Re: How Contour serie is used???

Posted: Thu Sep 26, 2013 12:37 pm
by narcis
Hi JAV,

Since Contour series automatically calculates its levels, you'd better draw you own polygons using TeeChart canvas custom drawing methods. You'll find more information on this subject in tutorial 13. Tutorials can be found at TeeChart's program group.

Re: How Contour serie is used???

Posted: Fri Sep 27, 2013 2:16 pm
by 15059326
hi narcis,
I've already check those tutorials and that isn't exactly what I'm looking for.
maybe if you could help me with this, for example how can I draw an irregular shape like the one that is attached, wich series could be used for doing something like that.

Regards,
David

Re: How Contour serie is used???

Posted: Fri Sep 27, 2013 3:35 pm
by yeray
Hi David,

What about a MapSeries?
Take a look at the exmaple included in the demo at "All Features\Welcome !\Chart styles\Extended\Map GIS"
And here you'll find a simple example of how to draw a triangle:
http://www.teechart.net/support/viewtop ... =3&t=14336

How Contour serie is used???

Posted: Mon Oct 14, 2013 4:10 pm
by 15059326
hi
I need a example for contour series apply in progress sofware

please,

Regards

Re: How Contour serie is used???

Posted: Tue Oct 15, 2013 9:54 am
by yeray
Hi,

If this IDE supports ActiveX components, it should support TeeChart ActiveX as any other.
But I'm afraid we don't have experience with this software nor with the programming language to use with it.

Re: How Contour serie is used???

Posted: Mon Oct 28, 2013 3:59 pm
by 15059326
Hi
I am using Tee chart proactive 8 and i m drawing some maps using contour series, the x,y,z values that i am using for these maps are in the interval [0,10000000],
when I'm trying to draw it shows me an error out of memory.
What can i do to fix this?


Regards.

Re: How Contour serie is used???

Posted: Wed Oct 30, 2013 9:13 am
by yeray
Hi David,

Since you are using an IDE we don't have experience with here, could you please arrange a simple example project without dependencies on any database or similar connections to your particular environment, probably manually populating the series so we can check the code and translate to VB6 and reproduce the problem here?
Or if you have VB6 or any Visual Studio, it would be even better if you could arrange this simple example in any of these environments.

Re: How Contour serie is used???

Posted: Wed Oct 30, 2013 1:51 pm
by 15059326
hi yeray
this is the example in progress soft

vs:RemoveAllSeries NO-ERROR.
vs:Aspect:View3D = False.
vs:ADDSeries (17).


DEFINE VARIABLE endTime1 AS INT NO-UNDO.
DEFINE VARIABLE endTime2 AS INT NO-UNDO.


DO endTime1 = 1000 TO 100000 BY 100:
DO endTime2 = 2000 TO 200000 BY 100:
vs:Series(0):asContour:addXYZ(endTime1,
RANDOM(0,1) * 10000000,
endTime2,
"",
536870912).
END.

END.


my variable endTime1 my variable endTime is in the interval [1,1000000] and i need to draw with these variables

Re: How Contour serie is used???

Posted: Fri Nov 01, 2013 3:29 pm
by 15059326
hi
I need help to draw this example
I am trying with series contour but i don´t know how to put the values.
Please I need an example for this kind of graph

Image

Image

Image

Image

How to draw this

Regards

Re: How Contour serie is used???

Posted: Tue Nov 05, 2013 9:12 am
by narcis
Hi JAV,

Levels are calculated automatically in Contour series. You should populate them with values as I explained here. Contour series will calculate its levels automatically. You can also set custom levels manually as explained in the All Features\Welcome!\Chart Styles\Extended\Contour\Custom Levels example at the features demo, available at TeeChart's program group.