Working with Data > Grid and Irregular Grid Data > Creating a Subset of a Chart |
The CreateSubset method enables you to create a subset of an existing chart. This method is passed the following seven arguments:
· The X- and Y-coordinates of the origin of the subset region.
· The X- and Y-coordinates of the endpoint of the subset region.
· The number of X-axis grid lines contained in the region.
· The number of Y-axis grid lines contained in the region.
· The spline interpolation method to use (this must be an interpolation constant)
Here is code that calls CreateSubset:
Dim Subset As Object
...
With Chart3D1.ChartGroups(1).ElevationData
Set Subset = .CreateSubset 10.0, 12.5, 35.0, 27.5, 5, 4, _
oc3dInterpolateLinearSpline
End With