# Data Layout in GridDataSeries

## Content



Data in **Chart3D for WPF and Silverlight** is defined in the [GridDataSeries](/componentone/api/wpf/online-chart3d/dotnet-framework-api/C1.WPF.C1Chart3D.4.6.2/C1.WPF.C1Chart3D.GridDataSeries.html) class. It provides the following properties related to data:

| Property | Description |
| --- | --- |
| ZData | Gets or sets two-dimensional array of values on the grid. |
| Start | Gets or sets the start point of data. |
| Step | Gets or sets the step of grid data. |
| ContourData | Gets or sets two-dimensional array of contour data (4-dimensional chart). |

The first index of the 2D array in the [ZData](/componentone/api/wpf/online-chart3d/dotnet-framework-api/C1.WPF.C1Chart3D.4.6.2/C1.WPF.C1Chart3D.GridDataSeries.ZData.html)/ [ContourData](/componentone/api/wpf/online-chart3d/dotnet-framework-api/C1.WPF.C1Chart3D.4.6.2/C1.WPF.C1Chart3D.GridDataSeries.ContourData.html) properties corresponds to the X and the second index corresponds to the Y. The layout for **ZData** is shown in the following table.

|  | Start.X | Start.X + Step.X | Start.X + 2\*Step.X |
| --- | --- | --- | --- |
| Start.Y | ZData[0,0\] | ZData[1,0\] | ZData[2,0\] |
| Start.Y + Step.Y | ZData[0,1\] | ZData[1,1\] | ZData[2,1\] |
| Start.Y + 2\*Step.Y | ZData[0,2\] | ZData[1,2\] | ZData[2,2\] |

The element of the array ZData[0,0\] corresponds to the point (Start.X, Start.Y), ZData[1,0\] is the z-value at (Start.X+Step.X, Start.Y), and so on.

## See Also

[Chart Types](/componentone/docs/wpf/online-chart3d/overview/using-chart3d-for-wpf-and-silverlight/Graphtype)