# Defining the ChartData Object

## Content



The [ChartGroup](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ChartGroup.html) object also contains the [ChartData](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ChartData.html) object. This object contains the [Hole](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ChartData.Hole.html) property, the FunctionsList property, the SeriesList property which returns the ChartDataSeriesCollection object, the [PointStylesList](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ChartData.PointStylesList.html) property, and the [TrendsList](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ChartData.TrendsList.html) collection property. The ChartGroup object essentially provides access to all of the data-related objects and properties of the chart:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
C1Chart1.ChartGroups.ChartGroupsCollection(0).ChartData
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
c1Chart1.ChartGroups.ChartGroupsCollection[0].ChartData;
```

DOC-DETAILS-TAG-CLOSE

The FunctionsList collection stores functions to be plotted in the Chart data or plot area. The [FunctionsList](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ChartData.FunctionsList.html) property gets the [FunctionsCollection](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.FunctionsCollection.html) object associated with the current ChartData object.

PointStyles provide a mechanism to mark specific data points with different visual attributes than other points of the same data series. PointStyles are contained by the [PointStylesCollection](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.PointStylesCollection.html).

The [SeriesList](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ChartData.SeriesList.html) property returns a [ChartDataSeriesCollection](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ChartDataSeriesCollection.html) which is a collection of [ChartDataSeries](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ChartDataSeries.html) objects. ChartDataSeries objects contain all of the series and data for the chart. Series objects contain the [ChartDataArray](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ChartDataArray.html) objects, which hold the chart's data.

The trend lines supported by chart with [TrendLine](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.TrendLine.html) objects, can be divided into two groups, including **regression** and **non-regression**. Regression trend lines are **polynomial**, **exponent**, **logarithmic**, **power** and **Fourier** functions that approximate the data which the functions trend.

The ChartData object also provides access to the Hole property. Data Holes are breaks in the continuity of the data set.

## See Also

[Defining the ChartDataSeries Object](/componentone/docs/win/online-chart2d/chartingdata/definingthechartdata/definingthechartdata2)