Google Cloud Migration Center V1 Client - Class ChartData (1.0.2)

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<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
Google\Protobuf\Internal\RepeatedField

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<ChartData\DataPoint>
Returns
Type Description
$this