Contenuto principale

mlreportgen.chart.DataSeries Class

Namespace: mlreportgen.chart

Series of chart data points

Since R2026b

Description

Use an object of the mlreportgen.chart.DataSeries class to define a series of chart data points. A data series consists of one or more data points.

The mlreportgen.chart.DataSeries class is a handle class.

Class Attributes

HandleCompatible
true
ConstructOnLoad
true

For information on class attributes, see Class Attributes.

Creation

Description

dataSetObj = mlreportgen.chart.DataSeries creates an empty data series.

dataSetObj = mlreportgen.chart.DataSeries(dataSeriesName,points) creates a data series having the specified name and data points.

Input Arguments

expand all

Name of the data series, specified as a character vector or a string scalar.

Chart data points, specified as one of the following:

  • a numerical array of data point values.

  • a vector of mlreportgen.chart.DataSeries objects.

  • a cell array of cell arrays that specify X and Y values of data points.

Example: [1 2 3 4]

Example: {{1,5}, {2,10}}

Properties

expand all

Data series belonging to the data set, specified as a vector of mlreportgen.chart.DataSeries objects. Each series must contain the same number of data points.

Attributes:

GetAccess
public
SetAccess
public
Transient
true
NonCopyable
true

Data set category names, specified as a cell array of string scalars. The array must contain a name for each data category represented by the data points of the data set.

Example: ["Liquid","Solid","Gas"]

Attributes:

GetAccess
public
SetAccess
public
NonCopyable
true

Data Types: cell

Methods

expand all

Version History

Introduced in R2026b