3D Charts and Irregular data

TeeChart for ActiveX, COM and ASP
Post Reply
miked
Newbie
Newbie
Posts: 8
Joined: Fri Nov 15, 2002 12:00 am

3D Charts and Irregular data

Post by miked » Sun Apr 25, 2004 4:10 pm

Our 3D charting environment must be able to handle irregular data. We are using the latest tChart in 3D using surface and tower series and are recieving access violations popups (which should be left to the developer to determine whether it's displayed and how it's handled) and from what we are able to gather it might be because of gaps in the data.

'Functions used to add data
TChart.Series(i).asTower.AddXYZ or
TChart.Series(i).asTower.AddXYZ

'Other
.asSurface.IrregularGrid = True

'Sample data for "one hour" that will throw an exception:
'(x-axis is hour, y-axis = value, z-axis = minutes)
  • x-axis, y-axis, z-axis
    4/25/2004 9:00:00 AM, 203, 4
    4/25/2004 9:00:00 AM, 218, 9
    4/25/2004 9:00:00 AM, 203, 14
    4/25/2004 9:00:00 AM, 219, 19
    4/25/2004 9:00:00 AM, 219, 24
    4/25/2004 9:00:00 AM, 203, 29
    4/25/2004 9:00:00 AM, 203, 34
    4/25/2004 9:00:00 AM, 203, 39
    4/25/2004 9:00:00 AM, 219, 44
    4/25/2004 9:00:00 AM, 219, 49
    4/25/2004 9:00:00 AM, 219, 54
    4/25/2004 9:00:00 AM, 203, 59

Does thcart 3D surface or tower support gaps in the x or z axis?

Should the gaps be filled with nulls?


Your support is appreciated

Regards,

Miked

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Mon Apr 26, 2004 2:30 pm

Hi Mike,
Does thcart 3D surface or tower support gaps in the x or z axis?

Should the gaps be filled with nulls?
The only 3D series that supports gaps in this fashion is the TriSurface series, e.g.

Code: Select all

Private Sub Form_Load()
TeeCommander1.Chart = TChart1
With TChart1
    .AddSeries scTriSurface
    .Series(0).asTriSurface.AddXYZ DateValue("25/4/2004") + TimeValue("09:00:00"), 4, 203, "", clTeeColor
    .Series(0).asTriSurface.AddXYZ DateValue("25/4/2004") + TimeValue("09:00:01"), 14, 203, "", clTeeColor
    .Series(0).asTriSurface.AddXYZ DateValue("25/4/2004") + TimeValue("09:00:02"), 29, 203, "", clTeeColor
    .Series(0).asTriSurface.AddXYZ DateValue("25/4/2004") + TimeValue("09:00:03"), 34, 203, "", clTeeColor
    .Series(0).asTriSurface.AddXYZ DateValue("25/4/2004") + TimeValue("09:00:04"), 39, 203, "", clTeeColor
    .Series(0).asTriSurface.AddXYZ DateValue("25/4/2004") + TimeValue("09:00:05"), 59, 203, "", clTeeColor
    .Series(0).asTriSurface.AddXYZ DateValue("25/4/2004") + TimeValue("09:00:00"), 9, 218, "", clTeeColor
    .Series(0).asTriSurface.AddXYZ DateValue("25/4/2004") + TimeValue("09:00:00"), 19, 219, "", clTeeColor
    .Series(0).asTriSurface.AddXYZ DateValue("25/4/2004") + TimeValue("09:00:01"), 24, 219, "", clTeeColor
    .Series(0).asTriSurface.AddXYZ DateValue("25/4/2004") + TimeValue("09:00:02"), 44, 219, "", clTeeColor
    .Series(0).asTriSurface.AddXYZ DateValue("25/4/2004") + TimeValue("09:00:03"), 49, 219, "", clTeeColor
    .Series(0).asTriSurface.AddXYZ DateValue("25/4/2004") + TimeValue("09:00:04"), 54, 219, "", clTeeColor
End With
End Sub
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply