> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Interface IOperationsChartViewModel

Namespace: [VM.Operations.Post.Interfaces](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r2/lib/VM.Operations.Post.Interfaces)\
Assembly: VM.Operations.Post.dll

Represents the base interface for properties and methods that make up a chart view.

```python theme={null}
public interface IOperationsChartViewModel : IView, IOperationsBase
```

#### Implements

[IView](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r2/lib/VM.Operations.Post.Interfaces.IView.md),
[IOperationsBase](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r2/lib/VM.Operations.Post.Interfaces.IOperationsBase.md)

## Examples

For an example that includes information about interfaces, see this example.
To view the examples, refer to the location of the 'Install\_Path\Motion\Document\Postprocessor API for Python.zip' file.

```python theme={null}
# IOperationsChartViewModel.py
import sys

current_dir = __file__.rsplit('\\', 1)[0]
external_modules_path = current_dir + '\\..\\..\\Modules'
sys.path.append(external_modules_path)

from OperationAPI import *

# Start the headless application interface
applicationHandler = ApplicationHandler()

# Import result file
result_file_path = get_result_file_path()

# Set array about result file
filepaths = List[str]()
filepaths.Add(result_file_path)

# Open about result files
applicationHandler.AddDocument(filepaths)

# Get Page
page = applicationHandler.GetActivePage()

# Create PlotView
chartView = page.CreateChart("Chart")

chartView.Legend.Background = Colors.Red
chartView.Legend.FontColor = Colors.Black
chartView.Legend.FontFace = FontFamily("Arial")
chartView.Legend.FontSize = 15
chartView.Legend.FontStyle = OperationAPIService.GetFontStyleFromString("Italic")
chartView.Legend.FontWeight = OperationAPIService.GetFontWeightFromString("Bold")
chartView.Legend.LegendPlacement = LegendPlacementType.Bottom
chartView.Legend.ItemsInFilter = "Visible Curves"

# Close the Pages
page.Close()

# Close Document
applicationHandler.CloseDocument(result_file_path)
```

## Properties

### Legend

Get or sets the legend for the chart.

```python theme={null}
IOperationsLegendModifier Legend { get; }
```

#### Property Value

[IOperationsLegendModifier](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r2/lib/VM.Operations.Post.Interfaces.IOperationsLegendModifier.md)

#### Examples

For an example that includes this property, see the [Interface IOperationsChartViewModel](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r2/lib/VM.Operations.Post.Interfaces.IOperationsChartViewModel.md).

#### Remarks

The Legend property allows you to control the appearance and behavior of the chart's legend.
Through this property, you can access various attributes of the legend and adjust them to fit your
specific requirements.

## Methods

### ImportNumeric(string, List\<INumericParameter>)

Imports curve data from an external file and adds the curves to the chart view.

```python theme={null}
void ImportNumeric(string filepath, List<INumericParameter> targets)
```

#### Parameters

`filepath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The path to the file containing the exported curves. Supported file formats include (\*.txt, \*.csv, \*.out, \*.rsp).

`targets` [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<INumericParameter>

A list of INumericParameter objects that specify the parameters for the curves to be created.

#### Examples

For an example that includes this property, see the [Interface ApplicationHandler](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r2/lib/VM.API.Post.Operations.ApplicationHandler.md).

#### Remarks

This method reads curve data from the specified file and adds the corresponding curves to the chart view.
Each INumericParameter in the `targets` list contains the following properties:
<ul><li>NameThe name of the curve to be created.</li><li>TargetXThe path to the data for the X-axis.</li><li>TargetYThe path to the data for the Y-axis.</li></ul>
