Chart Class

Serves as the root class of the Chart control. To utilize the Chart control, create it and add it to a form.  Additionally, you will need to create one or more ChartAreas to define the areas where plotting will take place.  You will also need to create one or more ChartSeries, which defines the data to be displayed in the ChartArea.  Optionally, axes and legends can be added.

The DataGridView control allows you to display data in a tabular format.  Similar to the Chart control, you start by creating a DataGridView and adding it to the form.   Columns and rows can then be added using the DataGridViewColumn and DataGridViewRow classes.

Namespace: elsystem.windows.forms

Properties

   Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).

  Name Type Description
Public property BackGradientStyle enum Gets or sets the orientation for the background gradient of a Chart control. Also determines whether a gradient is used. See GradientStyle for available values.
Public property BackSecondaryColor object Gets or sets the secondary color of the chart background. See Color class for possible values.
Public property ChartAreas object Gets a read-only ChartAreaCollection object that is used to store ChartArea objects.
Public property ChartSeries object Gets a read-only ChartAreaCollection object that is used to store ChartSeries objects.
Public property Palette enum Gets or sets the palette color for the chart.
Methods
  Name Description
Public property AddLegend(title) Adds a text title to the chart legend.
Public property Create() Initializes a new instance of a chart.
Public property Create(width,height) Initializes a new instance of a chart using the specified width and height.
Public property ScrollX(iChartArea, position) Scrolls to a position along the X axis of the specified chart area index.
Public property ScrollY(iChartArea, position) Scrolls to a position along the Y axis of the specified chart area index.
Events
  Name Description
Public event

Click

Occurs when the Chart control is clicked.

Public event

MouseDown

Occurs when a mouse button is pressed when the pointer is over a Chart control.

Public event

MouseHover

Occurs when the mouse pointer rests on a Chart control.

Public event

MouseMove

Occurs when the mouse pointer moves while over this Chart control.

Public event

MouseUp

Occur when a mouse button is released when the pointer is over a Chart control.