Skip to main content

OpenTD reference 2026 R1

Class Series2d

Last update: 09.03.2026

Namespace: OpenTD.Results.Plot
Assembly: OpenTD.Results.dll

Represents a 2d series on a plot. Will attempt to name itself based on the data associated with it.

public class Series2d

Inheritance

object ← Series2d

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

Series2d(DataArray)

Initializes a new instance of the class, looking in ydata's SourceDataset for time or record number to use as x data.

public Series2d(DataArray ydata)

Parameters

ydata DataArray

The y data.

Series2d(DataArray, string)

Initializes a new instance of the class, looking in ydata's SourceDataset for time or record number to use as x data.

public Series2d(DataArray ydata, string name)

Parameters

ydata DataArray

The y data.

name string

A custom series name.

Exceptions

OpenTDException

ydata dataset must contain a valid SourceDataset to look up x values

Series2d(DataArray, DataArray)

Initializes a new instance of the class, explicitly specifying x and y data.

public Series2d(DataArray xdata, DataArray ydata)

Parameters

xdata DataArray

The x data.

ydata DataArray

The y data.

Series2d(DataArray, DataArray, string)

Initializes a new instance of the class, explicitly specifying x and y data.

public Series2d(DataArray xdata, DataArray ydata, string name)

Parameters

xdata DataArray

The x data.

ydata DataArray

The y data.

name string

A custom series name.

Fields

Series2dStyle

public Series2dStyle Series2dStyle

Field Value

Series2dStyle

Properties

Comment

public string Comment { get; set; }

Property Value

string

Enabled

public bool Enabled { get; set; }

Property Value

bool

InternalSuggestedComment

public string InternalSuggestedComment { get; set; }

Property Value

string

InternalSuggestedName

public string InternalSuggestedName { get; set; }

Property Value

string

Name

public string Name { get; set; }

Property Value

string

XAxis

public Axis XAxis { get; set; }

Property Value

Axis

XData

public DataArray XData { get; set; }

Property Value

DataArray

YAxis

public Axis YAxis { get; set; }

Property Value

Axis

YData

public DataArray YData { get; set; }

Property Value

DataArray

Methods

CheckData()

public void CheckData()

GetSeries2dStyle()

public Series2dStyle GetSeries2dStyle()

Returns

Series2dStyle

SetSeries2dStyle(Series2dStyle)

public void SetSeries2dStyle(Series2dStyle sstyle)

Parameters

sstyle Series2dStyle

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

See Also

Plot2d, IAutoName

Connect with Ansys