# Google Cloud Migration Center V1 Client - Class ChartData (1.2.3)

1.2.3 (latest) 1.2.2 1.1.2 1.0.3 0.4.5 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Migration Center V1 Client class ChartData.

Describes a collection of data points rendered as a Chart.

Generated from protobuf message `google.cloud.migrationcenter.v1.ReportSummary.ChartData`

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1 \\ ReportSummary

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ data_points` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.ReportSummary.ChartData.DataPoint>` Each data point in the chart is represented as a name-value pair with the name being the x-axis label, and the value being the y-axis value. |

### getDataPoints

Each data point in the chart is represented as a name-value pair
with the name being the x-axis label, and the value being the y-axis
value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.ReportSummary.ChartData.DataPoint>` |   |

### setDataPoints

Each data point in the chart is represented as a name-value pair
with the name being the x-axis label, and the value being the y-axis
value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.ReportSummary.ChartData.DataPoint>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |