Chart control.

Namespace:  AForge.Controls
Assembly:  AForge.Controls (in AForge.Controls.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public class Chart : Control

Remarks

The chart control allows to display multiple charts at time of different types: dots, lines, connected dots.

Sample usage:

CopyC#
// create data series array
double[,] testValues = new double[10, 2];
// fill data series
for ( int i = 0; i < 10; i++ )
{
    testValues[i, 0] = i; // X values
    testValues[i, 1] = Math.Sin( i / 18.0 * Math.PI ); // Y values
}
// add new data series to the chart
chart.AddDataSeries( "Test", Color.DarkGreen, Chart.SeriesType.ConnectedDots, 3 );
// set X range to display
chart.RangeX = new AForge.Range( 0, 9 );
// update the chart
chart.UpdateDataSeries( "Test", testValues );

Inheritance Hierarchy

See Also