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 | |
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. | |
BackSecondaryColor | object | Gets or sets the secondary color of the chart background. See Color class for possible values. | |
ChartAreas | object | Gets a read-only ChartAreaCollection object that is used to store ChartArea objects. | |
ChartSeries | object | Gets a read-only ChartAreaCollection object that is used to store ChartSeries objects. | |
Palette | enum | Gets or sets the palette color for the chart. |
Methods
Name | Description | |
AddLegend(title) | Adds a text title to the chart legend. | |
Create() | Initializes a new instance of a chart. | |
Create(width,height) | Initializes a new instance of a chart using the specified width and height. | |
Invalidate() | Causes the chart to invalidate the entire chart and redraw it. | |
Refresh() | Causes the chart to invalidate the client area and redraw it. | |
ScrollX(iChartArea, position) | Scrolls to a position along the X axis of the specified chart area index. | |
ScrollY(iChartArea, position) | Scrolls to a position along the Y axis of the specified chart area index. |
Events
Name | Description | |
Click |
Occurs when the Chart control is clicked. |
|
MouseDown |
Occurs when a mouse button is pressed when the pointer is over a Chart control. |
|
MouseHover |
Occurs when the mouse pointer rests on a Chart control. |
|
MouseMove |
Occurs when the mouse pointer moves while over this Chart control. |
|
MouseUp |
Occur when a mouse button is released when the pointer is over a Chart control. |