Assembly: VM.Operations.Post.dll Represents the base interface for properties and methods that make up a 2D chart view.
Implements
IOperationsChartViewModel, IViewExamples
To view the examples, refer to the location of the ‘Install_Path\Motion\Document\Postprocessor API for Python.zip’ file.Properties
Background
Gets or sets the background color of the chart view.Property Value
ColorExamples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This property allows you to set the background color of the chart view. In the UI, this property is represented under the “Color” category with the property name “Back Ground”.BorderColor
Gets or sets the border color of the chart view.Property Value
ColorExamples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This property allows you to set the border color of the chart view. In the UI, this property is represented under the “Color” category with the property name “Border Color”.ChartAxisType
Gets or sets the axis type of the chart, indicating whether to display the chart’s axis as single or multiple.Property Value
ChartAxisTypeExamples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This property allows you to set the axis type of the chart. It indicates whether the chart’s axis is displayed as single or multiple. In the UI, this property is represented under the “Axis” category with the property name “Axis Type”. The available options are:- Single
- Multiple
ChartTitle
Gets or sets the title of the chart view.Property Value
stringExamples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This property allows you to set the title of the chart view. In the UI, this property is represented under the “Chart” category with the property name “Title”.FontColor
Gets or sets the font color of the chart view’s title.Property Value
ColorExamples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This property allows you to set the font color of the chart view’s title. In the UI, this property is represented under the “Chart” category with the property name “Font Color”.FontFace
Gets or sets the font face of the chart title.Property Value
FontFamilyExamples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This property allows you to set the font face of the chart title. In the UI, this property is represented under the “Font” category with the property name “Face”.FontSize
Gets or sets the font size of the chart title.Property Value
doubleExamples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This property allows you to set the font size of the chart title. In the UI, this property is represented under the “Font” category with the property name “Size”.FontStyle
Gets or sets the font style of the chart title.Property Value
FontStyleExamples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This property allows you to set the font style of the chart title. In the UI, this property is represented under the “Font” category with the property name “Style”. The supported types are:- Italic
- Normal
- Oblique
FontWeight
Gets or sets the font weight of the chart title.Property Value
FontWeightExamples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This property allows you to set the font weight of the chart title. In the UI, this property is represented under the “Font” category with the property name “Weight”. The available options are:- Bold
- Normal
Methods
AddCurves(string, PlotParameters)
Adds curves to the chart by reading data from the specified file path and using the given plot parameters. Please refer to this here link.Parameters
filepath string
The path to the file containing the curve data.
parameters PlotParameters
The parameters used for plotting the curves, including target entity, data paths, coordinate system, and plot data type.
- Target - The target entity for plotting the curves.
- PlotDataType - Default or Plot Data.
- Paths - An Paths representing the paths to the data to be read. This is a combination of characteristic and component.
- CSYS - The coordinate system to be used.
Returns
IOperationsLineDataSeriesViewModelBase[] An array of IOperationsLineDataSeriesViewModelBase representing the added curves.Examples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This method reads data from the specified file path and adds curves to the chart using the provided plot parameters.ExportAllCurves(string)
Exports all curves contained in the chart to the specified file path without displaying a file save dialog.Parameters
filepath string
The file path where the curves will be saved.
Examples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This method exports all data series contained in the chart without displaying a file save dialog. It accepts a file path as a parameter and saves the curves directly to that location. This method is recommended for use with the OperationAPI, especially for repetitive tasks or scenarios requiring automation.ExportAllDataSeries()
Exports all data series included in the chart.Examples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This method exports all curves contained in the chart. When used via the OperationAPI, a file dialog appears on the screen to specify the file save location. Therefore, it is not recommended for repetitive tasks or scenarios requiring automation. Instead, it is recommended to use the ExportAllCurves() method, which does not display a file save dialog.GetAxis(string)
Retrieves an axis by its name.Parameters
name string
The name of the axis to be retrieved.
Returns
IOperationsAxisViewModelBase An instance of IOperationsAxisViewModelBase representing the axis with the specified name, ornull if no such axis exists.
Examples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This method searches for an axis with the given name and returns the corresponding instance. If no axis with the specified name is found, the method returnsnull.
GetCurve(string)
Gets a curve from the chart by its name.Parameters
name string
The name of the curve to retrieve.
Returns
IOperationsLineDataSeriesViewModelBase An instance of IOperationsLineDataSeriesViewModelBase representing the curve with the specified name, ornull if no such curve exists.
Examples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This method searches for and returns the curve with the given name from the chart. If no curve with the specified name is found, it returnsnull.
GetCurveByID(string)
Gets a curve from the chart by its ID.Parameters
id string
The ID of the curve to retrieve.
Returns
IOperationsLineDataSeriesViewModelBase An instance of IOperationsLineDataSeriesViewModelBase representing the curve with the specified ID, ornull if no such curve exists.
Examples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This method searches for and returns the curve with the given ID from the chart. If no curve with the specified ID is found, it returnsnull.
GetCurveNameList()
Gets a list of names of all curves in the chart view.Returns
IEnumerable<string> A collection of the names of all curves currently displayed in the chart view.Examples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This method retrieves the names of all the curves that are currently displayed in the chart view.GetCurves()
Gets all the curves currently included in the chart view.Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of all the curves currently displayed in the chart view.Examples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This method retrieves all the curves that are currently displayed in the chart view.GetCurves(string)
Gets all curves from the chart view that contain the specified substring in their names.Parameters
name string
A substring to search for within the curve names.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of all curves whose names contain the specified substring.Examples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This method searches for and returns all curves whose names contain the specified substring. If no such curves are found, an empty collection is returned.GetLastCurve()
Gets the most recently added curve from the chart view.Returns
IOperationsLineDataSeriesViewModelBase An instance of IOperationsLineDataSeriesViewModelBase representing the last added curve, ornull if no curves are present.
Examples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This method retrieves the curve that was added last to the chart view. If no curves have been added, it returnsnull.
Remove(string)
Removes a curve from the chart by its id.Parameters
id string
The id of the curve to be removed.
Examples
For an example that includes this property, see the Interface IOperationsLine2DViewModelBase.Remarks
This method deletes the curve with the specified id from the chart. If no curve with the given id exists, no action is taken.Remove(IOperationsLineDataSeriesViewModelBase)
Removes a curve from the chart by its instance.Parameters
curve IOperationsLineDataSeriesViewModelBase
The instance of the curve to be removed.