Chart control.
Namespace:
AForge.ControlsAssembly: 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:
// 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
System..::.Object
System..::.MarshalByRefObject
System.ComponentModel..::.Component
System.Windows.Forms..::.Control
AForge.Controls..::.Chart
System..::.MarshalByRefObject
System.ComponentModel..::.Component
System.Windows.Forms..::.Control
AForge.Controls..::.Chart