# Charting Data

## Content



The 2D Chart displays data supplied in a general layout. Data gets loaded into the six ChartDataArray objects, which take a type Object. Data can be loaded from pre-filled arrays or can be entered in at design time.

A General layout is used with every chart type. It contains an X and Y array, along with Y1, Y2, Y3, and Y4 arrays. All of these arrays can take data or can be null. For instance, to plot an XY chart with only one series, only the X and Y arrays would contain data. The other Y arrays would remain empty. In addition, unlike an array layout, each series can have a different number of points, and does not have to have matching X values which allows for charting as in the following image:

![](https://cdn.mescius.io/document-site-files/images/70bd33a2-280e-4cc3-a1c0-7b827eceb8aa/imagesext/image9_143.png)

For convenience, a [PointData](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ChartDataSeries.PointData.html) property (an array of PointF structures) can also be used to supply X and Y data. The PointF values are not independent of the X and Y arrays, merely another form of data input and output. Changing values in the **PointData** property changes the X and Y arrays and vice versa.

The important General layout characteristics illustrated in the preceding image are the following:

*   The points in each series have their own X- and Y-values.
*   Each series can contain a different number of points.

## See Also

[Defining the Chart Data Objects](/componentone/docs/win/online-chart2d/chartingdata/definingthechartdata)

[Entering and Modifying Chart Data](/componentone/docs/win/online-chart2d/chartingdata/enteringandmodifying)

[Customizing the ChartDataSeries](/componentone/docs/win/online-chart2d/chartingdata/customizingthechartd)

[Charting Irregular Data](/componentone/docs/win/online-chart2d/chartingdata/chartingirregulardat)

[Specifying Data Holes](/componentone/docs/win/online-chart2d/chartingdata/specifyingdataholes)

[Plotting Functions](/componentone/docs/win/online-chart2d/chartingdata/plottingfunctions)

[Working with TrendLines](/componentone/docs/win/online-chart2d/chartingdata/workingwithtrendline)

[Working with PointStyles](/componentone/docs/win/online-chart2d/chartingdata/workingwithpointstyl)