Assembly: VM.Operations.Post.dll Represents the interface for 2D chart operations view models.
Implements
IOperationsLine2DViewModelBase, IView, IOperationsBaseProperties
AxisX
Gets or sets a value indicating whether the X-axis is visible.Property Value
boolExamples
The following example demonstrates how to use theAxisX property:
Remarks
This property determines whether the X-axis is visible in the chart. In the UI, this property is represented under the “Chart” category with the property name “Axis X”.AxisY
Gets or sets a value indicating whether the Y-axis is visible.Property Value
boolExamples
The following example demonstrates how to use theAxisY property:
Remarks
This property determines whether the Y-axis is visible in the chart. In the UI, this property is represented under the “Chart” category with the property name “Axis Y”.ShowAnimationBar
Gets or sets a value indicating whether the Animation Bar is visible.Property Value
boolExamples
The following example demonstrates how to toggle the visibility of the Animation Bar:Remarks
Use this property to control the visibility of the Animation Bar in the user interface. In the UI, this property is represented under the “Data Tracking” category with the property name “Animation Bar”.ShowLegend
Gets or sets a value indicating whether the legend of the 2D chart is visible.Property Value
boolExamples
The following example demonstrates how to toggle the visibility of the legend:Remarks
Use this property to control the visibility of the legend in a 2D chart. In the UI, this property is represented under the “Chart” category with the property name “Legend”.TrackingCurve
Gets or sets a value indicating whether the Tracking Curve is visible.Property Value
boolExamples
The following example demonstrates how to use theTrackingCurve property:
Remarks
This property determines whether the Tracking Curve is visible in the chart. In the UI, this property is represented under the “Data Tracking” category with the property name “Tracking Data”.TrackingOption
Gets or sets the tracking option for displaying data points on the chart.Property Value
ChartAxisTypeExamples
The following example demonstrates how to set the tracking option:Remarks
This property determines whether the data point values are shown for the closest curve or for all curves in the chart when the mouse is hovered over it. The property does not function if the Tracking Curve option is disabled. In the UI, this property is labeled as “Tracking Type”. The supported types are:- Single
- Multiple
Methods
CreateAbsolute(IEnumerable<string>, SignType)
Transforms data series into absolute values for the Y-Axis as part of the chart tab’s Transform functionality.Parameters
lstSeriesName IEnumerable<string>
The list of curve names to perform the operation on.
signType SignType
The type of absolute value transformation to apply.
The supported types are:
- Positive
- Negative
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with transformed absolute values.Examples
The following example demonstrates how to use theCreateAbsolute method:
Remarks
This function iterates over each series specified inlstSeriesName and transforms the Y values of each point in the series
to their absolute values based on the provided signType. If signType is Positive,
the Y values are converted to their positive absolute values. If signType is Negative, the Y values
are converted to their negative absolute values.
CreateAbsolute(IEnumerable<IOperationsLineDataSeriesViewModelBase>, SignType)
Transforms data series into absolute values for the Y-Axis as part of the chart tab’s Transform functionality.Parameters
seriesViewModels IEnumerable<IOperationsLineDataSeriesViewModelBase>
The list of instances of the curves to perform the operation on.
signType SignType
The type of absolute value transformation to apply.
The supported types are:
- Positive
- Negative
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with transformed absolute values.Examples
The following example demonstrates how to use theCreateAbsolute method:
Remarks
This function iterates over each series inseriesViewModels and transforms the Y values of each point in the series
to their absolute values based on the provided signType. If signType is Positive,
the Y values are converted to their positive absolute values. If signType is Negative, the Y values
are converted to their negative absolute values.
CreateAlign(IEnumerable<string>, AlignType)
Aligns data series to zero or the first point of the target curve as part of the chart tab’s Transform functionality.Parameters
lstSeriesName IEnumerable<string>
The list of curve names to perform the operation on.
alignType AlignType
The type of alignment to apply.
The supported types are:
- Zero
- Curve
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with aligned values.Examples
The following example demonstrates how to use theCreateAlign method:
Remarks
This function iterates over each series specified inlstSeriesName and aligns the Y values of each point in the series
based on the provided alignType. If alignType is Zero,
the Y values are aligned to zero. If alignType is Curve,
the Y values are aligned to the first point of the target curve.
CreateAlign(IEnumerable<IOperationsLineDataSeriesViewModelBase>, AlignType)
Aligns data series to zero or the first point of the target curve as part of the chart tab’s Transform functionality.Parameters
seriesViewModels IEnumerable<IOperationsLineDataSeriesViewModelBase>
The list of instances of the curves to perform the operation on.
alignType AlignType
The type of alignment to apply.
The supported types are:
- Zero
- Curve
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with aligned values.Examples
The following example demonstrates how to use theCreateAlign method:
Remarks
This function iterates over each series inseriesViewModels and aligns the Y values of each point in the series
based on the provided alignType. If alignType is Zero,
the Y values are aligned to zero. If alignType is Curve,
the Y values are aligned to the first point of the target curve.
CreateDifferentiatedCurve(IEnumerable<string>)
Differentiates data series as part of the chart tab’s Calculus functionality.Parameters
lstSeriesName IEnumerable<string>
The list of curve names to perform the differentiation on.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with differentiated values.Examples
The following example demonstrates how to use theCreateDifferentiatedCurve method:
Remarks
This function iterates over each series specified inlstSeriesName and applies differentiation to the Y values
of each point in the series. The differentiation calculates the difference between consecutive points.
CreateDifferentiatedCurve(IEnumerable<IOperationsLineDataSeriesViewModelBase>)
Differentiates data series as part of the chart tab’s Calculus functionality.Parameters
seriesViewModels IEnumerable<IOperationsLineDataSeriesViewModelBase>
The list of instances of the curves to perform the differentiation on.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with differentiated values.Examples
The following example demonstrates how to use theCreateDifferentiatedCurve method:
Remarks
This function iterates over each series inseriesViewModels and applies differentiation to the Y values
of each point in the series. The differentiation calculates the difference between consecutive points.
CreateFFT(IEnumerable<string>, FFTType, FFTWindowType, ScaleType, int, double, double)
Applies FFT (Fast Fourier Transform) to data series as part of the chart tab’s functionality.Parameters
lstSeriesName IEnumerable<string>
The list of curve names to perform the operation on.
fftType FFTType
The type of FFT to apply.
The supported types are:
- Magnitude
- Phase
fftWindowType FFTWindowType
The window type to use for FFT.
The supported types are:
- Rectangular
- Triangular
- Bartlett
- Hanning
- Hamming
- Welch
- BlackMan
- None
scaleType ScaleType
The scale type to apply.
The supported types are:
- Original
- Logarithm
- Decibel
points int
The number of data points for FFT.
start double
The start time for using FFT on target data series.
end double
The end time for using FFT on target data series.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with FFT applied.Examples
The following example demonstrates how to use theCreateFFT method:
Remarks
This function performs FFT on each series specified inlstSeriesName within the provided start and end time range,
using the specified FFT type, window type, scale type, and number of points.
CreateFFT(IEnumerable<IOperationsLineDataSeriesViewModelBase>, FFTType, FFTWindowType, ScaleType, int, double, double)
Applies FFT (Fast Fourier Transform) to data series as part of the chart tab’s functionality.Parameters
seriesViewModels IEnumerable<IOperationsLineDataSeriesViewModelBase>
The list of instances of the curves to perform the operation on.
fftType FFTType
The type of FFT to apply.
The supported types are:
- Magnitude
- Phase
fftWindowType FFTWindowType
The window type to use for FFT.
The supported types are:
- Rectangular
- Triangular
- Bartlett
- Hanning
- Hamming
- Welch
- BlackMan
- None
scaleType ScaleType
The scale type to apply.
The supported types are:
- Original
- Logarithm
- Decibel
points int
The number of data points for FFT.
start double
The start time for using FFT on target data series.
end double
The end time for using FFT on target data series.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with FFT applied.Examples
The following example demonstrates how to use theCreateFFT method:
Remarks
This function performs FFT on each series specified inseriesViewModels within the provided start and end time range,
using the specified FFT type, window type, scale type, and number of points.
CreateFiltering(IEnumerable<string>, FilteringType, int, double, double)
Applies data filtering and smoothing to data series as part of the chart tab’s Signal Processing functionality.Parameters
lstSeriesName IEnumerable<string>
The list of curve names to perform the operation on.
filteringType FilteringType
The type of filter to apply.
The supported types are:
- LowPass
- HighPass
- BandPass
- BandStop
order int
The order of the filter. As the value decreases, the output becomes smoother.
frequency1 double
The first frequency value for the filter.
frequency2 double
The second frequency value for the filter, used in band filters.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with filtering applied.Examples
The following example demonstrates how to use theCreateFiltering method:
Remarks
This function performs filtering on each series specified inlstSeriesName using the specified filtering type,
filter order, and frequency values. The filtering operation can smooth the data series based on the parameters provided.
CreateFiltering(IEnumerable<IOperationsLineDataSeriesViewModelBase>, FilteringType, int, double, double)
Applies data filtering and smoothing to data series as part of the chart tab’s Signal Processing functionality.Parameters
seriesViewModels IEnumerable<IOperationsLineDataSeriesViewModelBase>
The list of instances of the curves to perform the operation on.
filteringType FilteringType
The type of filter to apply.
The supported types are:
- LowPass
- HighPass
- BandPass
- BandStop
order int
The order of the filter. As the value decreases, the output becomes smoother.
frequency1 double
The first frequency value for the filter.
frequency2 double
The second frequency value for the filter, used in band filters.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with filtering applied.Examples
The following example demonstrates how to use theCreateFiltering method:
Remarks
This function performs filtering on each series specified inseriesViewModels using the specified filtering type,
filter order, and frequency values. The filtering operation can smooth the data series based on the parameters provided.
CreateFrequencyWeighting(IEnumerable<string>, WeightingType, FrequencyAxisType)
Applies frequency weighting to data series as part of the chart tab’s Signal Processing functionality.Parameters
lstSeriesName IEnumerable<string>
The list of curve names to perform the operation on.
weightingType WeightingType
The type of weighting to apply.
The supported types are:
- AWeighting
- BWeighting
- CWeighting
axisType FrequencyAxisType
Used to set the base of the log scale.
The supported types are:
- X
- X
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with frequency weighting applied.Examples
The following example demonstrates how to use theCreateFrequencyWeighting method:
Remarks
This function performs frequency weighting on each series specified inlstSeriesName using the specified weighting type
and axis type. A-weighting is the most commonly used to measure the sound pressure level, while B-weighting and C-weighting are alternative weighting functions.
CreateFrequencyWeighting(IEnumerable<IOperationsLineDataSeriesViewModelBase>, WeightingType, FrequencyAxisType)
Applies frequency weighting to data series as part of the chart tab’s Signal Processing functionality.Parameters
seriesViewModels IEnumerable<IOperationsLineDataSeriesViewModelBase>
The list of instances of the curves to perform the operation on.
weightingType WeightingType
The type of weighting to apply.
The supported types are:
- AWeighting
- BWeighting
- CWeighting
axisType FrequencyAxisType
Used to set the base of the log scale.
The supported types are:
- X
- X
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with frequency weighting applied.Examples
The following example demonstrates how to use theCreateFrequencyWeighting method:
Remarks
This function performs frequency weighting on each series specified inseriesViewModels using the specified weighting type
and axis type. A-weighting is the most commonly used to measure the sound pressure level, while B-weighting and C-weighting are alternative weighting functions.
CreateIntegratedCurve(IEnumerable<string>)
Integrates data series as part of the chart tab’s Calculus functionality.Parameters
lstSeriesName IEnumerable<string>
The list of curve names to perform the integration on.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with integrated values.Examples
The following example demonstrates how to use theCreateIntegratedCurve method:
Remarks
This function performs integration on each series specified inlstSeriesName by calculating the cumulative sum of the Y values
of each point in the series.
CreateIntegratedCurve(IEnumerable<IOperationsLineDataSeriesViewModelBase>)
Integrates data series as part of the chart tab’s Calculus functionality.Parameters
seriesViewModels IEnumerable<IOperationsLineDataSeriesViewModelBase>
The list of instances of the curves to perform the operation on.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with integrated values.Examples
The following example demonstrates how to use theCreateIntegratedCurve method:
Remarks
This function performs integration on each series specified inseriesViewModels by calculating the cumulative sum of the Y values
of each point in the series.
CreateInterpolation(IEnumerable<string>, int)
Applies interpolation to data series as part of the chart tab’s Interpolation functionality.Parameters
lstSeriesName IEnumerable<string>
The list of curve names to perform the interpolation on.
points int
The number of data points for interpolation.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with interpolated values.Examples
The following example demonstrates how to use theCreateInterpolation method:
Remarks
This function performs interpolation on each series specified inlstSeriesName by calculating the interpolated values
based on the specified number of points.
CreateInterpolation(IEnumerable<IOperationsLineDataSeriesViewModelBase>, int)
Applies interpolation to data series as part of the chart tab’s Interpolation functionality.Parameters
seriesViewModels IEnumerable<IOperationsLineDataSeriesViewModelBase>
The list of instances of the curves to perform the operation on.
points int
The number of data points for interpolation.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with interpolated values.Examples
The following example demonstrates how to use theCreateInterpolation method:
Remarks
This function performs interpolation on each series specified inseriesViewModels by calculating the interpolated values
based on the specified number of points.
CreateLogScale(IEnumerable<string>, double, double, bool)
Applies a logarithmic scale to data series as part of the chart tab’s Transform functionality.Parameters
lstSeriesName IEnumerable<string>
The list of curve names to perform the operation on.
coefficient double
The value of the coefficient.
baseValue double
The value of the base for the logarithmic scale.
decibel bool
Indicates whether to apply the decibel scale (20 * Log10(Y)) to the data series.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with logarithmic scaling applied.Examples
The following example demonstrates how to use theCreateLogScale method:
Remarks
This function performs a logarithmic transformation on each series specified inlstSeriesName using the specified coefficient,
base value, and whether to use the decibel scale.
CreateLogScale(IEnumerable<IOperationsLineDataSeriesViewModelBase>, double, double, bool)
Applies a logarithmic scale to data series as part of the chart tab’s Transform functionality.Parameters
seriesViewModels IEnumerable<IOperationsLineDataSeriesViewModelBase>
The list of instances of the curves to perform the operation on.
coefficient double
The value of the coefficient.
baseValue double
The value of the base for the logarithmic scale.
decibel bool
Indicates whether to apply the decibel scale (20 * Log10(Y)) to the data series.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with logarithmic scaling applied.Examples
The following example demonstrates how to use theCreateLogScale method:
Remarks
This function performs a logarithmic transformation on each series specified inseriesViewModels using the specified coefficient,
base value, and whether to use the decibel scale.
CreateSTFT(IHeatMapSTFTDataViewModel, IList<string>)
Creates a Short Time Fourier Transform (STFT) for data series and updates the heatmap data.Parameters
hitmapData IHeatMapSTFTDataViewModel
The heatmap data model to update with STFT results.
- SamplingFrequency - The value about setting the number of the interval for dividing Y direction grids on color map.
- TimeSlice - The value about setting the number of the interval for dividing X direction grids on color map.
- Overlap - The value of the percentage for setting overlapped intervals.
- SelectedPoints - The number of data point for FFT.
- Start - The start time for using FFT on target data series.
- End - The end time for using FFT on target data series.
- ReferenceValue - The reference value on decibel as the type of the scale.
- ScaleFactor - the scale factor to change from time domain to another domain.
- SelectedScaleType - An STFTScaleType enumeration value that represents the scale type for the STFT.
lstSeriesName IList<string>
The list of curve names to perform the STFT operation on.
Returns
IOperationsHeatMapSTFTViewModel[] A collection of STFTView.Examples
The following example demonstrates how to use theCreateSTFT method:
Remarks
This function performs the STFT on each series specified inlstSeriesName and updates the heatmap data
model with the results. The heatmap data model is defined by the IOperationsHeatMapSTFTDataViewModel interface.
CreateSTFT(IHeatMapSTFTDataViewModel, IEnumerable<IOperationsLineDataSeriesViewModelBase>)
Creates a Short Time Fourier Transform (STFT) for data series and updates the heatmap data.Parameters
hitmapData IHeatMapSTFTDataViewModel
The heatmap data model to update with STFT results.
- SamplingFrequency - The value about setting the number of the interval for dividing Y direction grids on color map.
- TimeSlice - The value about setting the number of the interval for dividing X direction grids on color map.
- Overlap - The value of the percentage for setting overlapped intervals.
- SelectedPoints - The number of data point for FFT.
- Start - The start time for using FFT on target data series.
- End - The end time for using FFT on target data series.
- ReferenceValue - The reference value on decibel as the type of the scale.
- ScaleFactor - the scale factor to change from time domain to another domain.
- SelectedScaleType - An STFTScaleType enumeration value that represents the scale type for the STFT.
seriesViewModels IEnumerable<IOperationsLineDataSeriesViewModelBase>
The list of instances of the curves to perform the operation on.
Returns
IOperationsHeatMapSTFTViewModel[] A collection of STFTView.Examples
The following example demonstrates how to use theCreateSTFT method:
Remarks
This function performs the STFT on each series specified inseriesViewModels and updates the heatmap data
model with the results. The heatmap data model is defined by the IOperationsHeatMapSTFTDataViewModel interface.
CreateScale(IEnumerable<string>, double, double)
Scales data series by the specified scale values as part of the chart tab’s Transform functionality.Parameters
lstSeriesName IEnumerable<string>
The list of curve names to perform the operation on.
scaleX double
The value to scale for the X-axis.
scaleY double
The value to scale for the Y-axis.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with scaled values.Examples
The following example demonstrates how to use theCreateScale method:
Remarks
This function scales each series specified inlstSeriesName by multiplying the X and Y values
of each point in the series by the specified scale values.
CreateScale(IEnumerable<IOperationsLineDataSeriesViewModelBase>, double, double)
Scales data series by the specified scale values as part of the chart tab’s Transform functionality.Parameters
seriesViewModels IEnumerable<IOperationsLineDataSeriesViewModelBase>
The list of instances of the curves to perform the operation on.
scaleX double
The value to scale for the X-axis.
scaleY double
The value to scale for the Y-axis.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with scaled values.Examples
The following example demonstrates how to use theCreateScale method:
Remarks
This function scales each series specified inseriesViewModels by multiplying the X and Y values
of each point in the series by the specified scale values.
CreateSimpleMath(IEnumerable<string>, SimpleMathType, int)
Performs simple mathematical operations (+, -, *) on data series as part of the chart tab’s Simple Math functionality.Parameters
lstSeriesName IEnumerable<string>
The list of curve names to perform the operation on.
simpleMathType SimpleMathType
The type of simple math operation to apply.
The supported types are:
- Add
- Subtract
- Multiply
points int
The number of data points for interpolation.
Returns
IOperationsLineDataSeriesViewModelBase A single data series resulting from the mathematical operation.Examples
The following example demonstrates how to use theCreateSimpleMath method:
Remarks
This function performs the specified mathematical operation on each series inlstSeriesName and combines the results
into a single series. The function supports addition, subtraction, and multiplication of the Y values of the data points in the series.
CreateSimpleMath(IEnumerable<IOperationsLineDataSeriesViewModelBase>, SimpleMathType, int)
Performs simple mathematical operations (+, -, *) on data series as part of the chart tab’s Simple Math functionality.Parameters
seriesViewModels IEnumerable<IOperationsLineDataSeriesViewModelBase>
The list of instances of the curves to perform the operation on.
simpleMathType SimpleMathType
The type of simple math operation to apply.
The supported types are:
- Add
- Subtract
- Multiply
points int
The number of data points for interpolation.
Returns
IOperationsLineDataSeriesViewModelBase A single data series resulting from the mathematical operation.Examples
The following example demonstrates how to use theCreateSimpleMath method:
Remarks
This function performs the specified mathematical operation on each series inseriesViewModels and combines the results
into a single series. The function supports addition, subtraction, and multiplication of the Y values of the data points in the series.
CreateSmoothing(IEnumerable<string>, SmoothingType, int, int)
Applies data filtering and smoothing to data series as part of the chart tab’s Signal Processing functionality.Parameters
lstSeriesName IEnumerable<string>
The list of curve names to perform the operation on.
smoothingType SmoothingType
The type of smoothing to apply.
The supported types are:
- SavitzkyGloay
- MovingWindowAveraging
pointsOfWindow int
The number of points for the smoothing window.
polyOrder int
The polynomial order for the smoothing operation.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with smoothing applied.Examples
The following example demonstrates how to use theCreateSmoothing method:
Remarks
This function performs smoothing on each series specified inlstSeriesName using the specified smoothing type,
window size, and polynomial order. The function supports moving average and Savitzky-Golay smoothing methods.
CreateSmoothing(IEnumerable<IOperationsLineDataSeriesViewModelBase>, SmoothingType, int, int)
Applies data filtering and smoothing to data series as part of the chart tab’s Signal Processing functionality.Parameters
seriesViewModels IEnumerable<IOperationsLineDataSeriesViewModelBase>
The list of instances of the curves to perform the operation on.
smoothingType SmoothingType
The type of smoothing to apply.
The supported types are:
- SavitzkyGloay
- MovingWindowAveraging
pointsOfWindow int
The number of points for the smoothing window.
polyOrder int
The polynomial order for the smoothing operation.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of data series with smoothing applied.Examples
The following example demonstrates how to use theCreateSmoothing method:
Remarks
This function performs smoothing on each series specified inseriesViewModels using the specified smoothing type,
window size, and polynomial order. The function supports moving average and Savitzky-Golay smoothing methods.
CreateTranslate(IEnumerable<string>, double, double)
Translates data series by the specified offsets as part of the chart tab’s Transform functionality.Parameters
lstSeriesName IEnumerable<string>
The list of curve names to perform the translation on.
offsetX double
The offset value to translate on the X-axis.
offsetY double
The offset value to translate on the Y-axis.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of translated data series.Examples
The following example demonstrates how to use theCreateTranslate method:
Remarks
This function translates each series specified inlstSeriesName by adding the specified offsets to the X and Y values
of each point in the series.
CreateTranslate(IEnumerable<IOperationsLineDataSeriesViewModelBase>, double, double)
Translates data series by the specified offsets as part of the chart tab’s Transform functionality.Parameters
seriesViewModels IEnumerable<IOperationsLineDataSeriesViewModelBase>
The list of instances of the curves to perform the operation on.
offsetX double
The offset value to translate on the X-axis.
offsetY double
The offset value to translate on the Y-axis.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> A collection of translated data series.Examples
The following example demonstrates how to use theCreateTranslate method:
Remarks
This function translates each series specified inseriesViewModels by adding the specified offsets to the X and Y values
of each point in the series.