WPF Charting Documentation - SciChart WPF Charts SDK v5.x
Scale, Offset Filters

Offset Filter

The Offset Filter offsets the points in a Data-series by a set amount in the Y-direction.

To create an Offset Filter use the following code.

Offset Filter
Copy Code
using SciChart.Charting.Model.Filters; // Required for extension method .Offset()

var dataSeries = new XyDataSeries<double,double>(); // Original Data
dataSeries.Append(0,1);
dataSeries.Append(2,2);

var offsetDataSeries = dataSeries.Offset(10d); // Offset data.

var lineRenderableSeries = new FastLineRenderableSeries()
{
    DataSeries = offsetDataSeries, // Apply the Offset Data to a Line Series
}

 

Scale Filter

The Scale Filter applies a scalar to a DataSeries in the Y-direction.

To create a Scale Filter use the following code.

Scale Filter
Copy Code
using SciChart.Charting.Model.Filters; // Required for extension method .Scale()

var dataSeries = new XyDataSeries<double,double>(); // Original Data
dataSeries.Append(0,1);
dataSeries.Append(2,2);

var scaledDataSeries = dataSeries.Scale(0.5d); // Scale data.

var lineRenderableSeries = new FastLineRenderableSeries()
{
    DataSeries = scaledDataSeries, // Apply the Scale Data to a Line Series
}

 

 

 

 


SCICHART ® is a Registered Trademark in the UK, US and EU. Copyright SciChart Ltd 2011-2018.

Email us to give feedback!