OpenTD.Results.Plot.Series2d Class Reference
Last update: 16.07.2025Represents a 2d series on a plot. Will attempt to name itself based on the data associated with it. More...

Public Member Functions | |
| Series2d (DataArray ydata) | |
| Initializes a new instance of the Series2d class, looking in ydata's SourceDataset for time or record number to use as x data. | |
| Series2d (DataArray ydata, string name) | |
| Initializes a new instance of the Series2d class, looking in ydata's SourceDataset for time or record number to use as x data. | |
| Series2d (DataArray xdata, DataArray ydata) | |
| Initializes a new instance of the Series2d class, explicitly specifying x and y data. | |
| Series2d (DataArray xdata, DataArray ydata, string name) | |
| Initializes a new instance of the Series2d class, explicitly specifying x and y data. | |
| void | SetSeries2dStyle (Series2dStyle sstyle) |
| Series2dStyle | GetSeries2dStyle () |
| void | CheckData () |
| override string | ToString () |
Public Attributes | |
| Series2dStyle | Series2dStyle = new Series2dStyle() |
Properties | |
| DataArray | XData [get, set] |
| DataArray | YData [get, set] |
| Axis | XAxis [get, set] |
| Axis | YAxis [get, set] |
| bool | Enabled [get, set] |
| string | Name [get, set] |
| string | InternalSuggestedName [get, set] |
| string | Comment [get, set] |
| string | InternalSuggestedComment [get, set] |
Detailed Description
Represents a 2d series on a plot. Will attempt to name itself based on the data associated with it.
Constructor & Destructor Documentation
◆ Series2d() [1/4]
|
inline |
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 The y data.
◆ Series2d() [2/4]
|
inline |
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 The y data. name A custom series name.
- Exceptions
-
OpenTDException ydata dataset must contain a valid SourceDataset to look up x values
◆ Series2d() [3/4]
Initializes a new instance of the Series2d class, explicitly specifying x and y data.
- Parameters
-
xdata The x data. ydata The y data.
◆ Series2d() [4/4]
Initializes a new instance of the Series2d class, explicitly specifying x and y data.
- Parameters
-
xdata The x data. ydata The y data. name A custom series name.
Member Function Documentation
◆ CheckData()
|
inline |
◆ GetSeries2dStyle()
|
inline |
◆ SetSeries2dStyle()
|
inline |
◆ ToString()
|
inline |
Member Data Documentation
◆ Series2dStyle
| Series2dStyle OpenTD.Results.Plot.Series2d.Series2dStyle = new Series2dStyle() |
Property Documentation
◆ Comment
|
getset |
Implements OpenTD.Results.Dataset.IAutoComment.
◆ Enabled
|
getset |
◆ InternalSuggestedComment
|
getset |
Implements OpenTD.Results.Dataset.IAutoComment.
◆ InternalSuggestedName
|
getset |
Implements OpenTD.Results.Dataset.IAutoName.
◆ Name
|
getset |
Implements OpenTD.Results.Dataset.IAutoName.
◆ XAxis
|
getset |
◆ XData
|
getset |
◆ YAxis
|
getset |
◆ YData
|
getset |
The documentation for this class was generated from the following file:
- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV_ALPHA/buildXX/OpenTD.Results/Plot/Series2d.cs