Skip to main content
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.

Inheritance

object ← Series2d

Inherited Members

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

Constructors

Series2d(DataArray)

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

Parameters

ydata DataArray The y data.

Series2d(DataArray, string)

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

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 Series2d class, explicitly specifying x and y data.

Parameters

xdata DataArray The x data. ydata DataArray The y data.

Series2d(DataArray, DataArray, string)

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

Parameters

xdata DataArray The x data. ydata DataArray The y data. name string A custom series name.

Fields

Series2dStyle

Field Value

Series2dStyle

Properties

Comment

Property Value

string

Enabled

Property Value

bool

InternalSuggestedComment

Property Value

string

InternalSuggestedName

Property Value

string

Name

Property Value

string

XAxis

Property Value

Axis

XData

Property Value

DataArray

YAxis

Property Value

Axis

YData

Property Value

DataArray

Methods

CheckData()

GetSeries2dStyle()

Returns

Series2dStyle

SetSeries2dStyle(Series2dStyle)

Parameters

sstyle Series2dStyle

ToString()

Returns a string that represents the current object.

Returns

string A string that represents the current object.

See Also

Plot2d, IAutoName