Scatter Plot Control


Show/Hide the Fitted Curve

This page describes how to show and hide the fitted curve of a scatter plot series. The scatter plot control of the .Net Analytics package is of the following type:

The series class of the scatter plot is:

and the following property is responsible for showing/hiding the fitted curve:

The first step is to include the necessary namespaces for the controls and add new series.

Show and Hide the Fitted Curve

Below, we will hide (set by default) and show the fitted curve of a Scatter plot series (named spsSeries in the examples below):

[Visual Basic]
' Hide the fitted curve
spsSeries.ShowFittedCurve = False

' Show the fitted curve
spsSeries.ShowFittedCurve = True

[Visual C#]
// Hide the fitted curve
spsSeries.ShowFittedCurve = false;

// Show the fitted curve
spsSeries.ShowFittedCurve = true;

Charts showing before and after the fitted curve has been shown and hidden:

Scatter plot with first series shown Scatter plot with second series shown