Class Series2d
Last update: 09.03.2026Namespace: 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
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
public Series2d(DataArray ydata)
Parameters
ydata DataArray
The y data.
Series2d(DataArray, string)
Initializes a new instance of the
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
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
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
Properties
Comment
public string Comment { get; set; }
Property Value
Enabled
public bool Enabled { get; set; }
Property Value
InternalSuggestedComment
public string InternalSuggestedComment { get; set; }
Property Value
InternalSuggestedName
public string InternalSuggestedName { get; set; }
Property Value
Name
public string Name { get; set; }
Property Value
XAxis
public Axis XAxis { get; set; }
Property Value
XData
public DataArray XData { get; set; }
Property Value
YAxis
public Axis YAxis { get; set; }
Property Value
YData
public DataArray YData { get; set; }
Property Value
Methods
CheckData()
public void CheckData()
GetSeries2dStyle()
public Series2dStyle GetSeries2dStyle()
Returns
SetSeries2dStyle(Series2dStyle)
public void SetSeries2dStyle(Series2dStyle sstyle)
Parameters
sstyle Series2dStyle
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
A string that represents the current object.
See Also
Plot2d, IAutoName