Page 1 of 1

3D Charts and Irregular data

Posted: Sun Apr 25, 2004 4:10 pm
by 9078657
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

Posted: Mon Apr 26, 2004 2:30 pm
by Chris
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