This example shows how to create a Line chart at runtime.
In this example, you add a Series
object to the ChartControl.Series
collection and then populate its Series.Points
collection with points.
The Chart Control uses the XY-Diagram to display the line series. Cast the ChartControl.Diagram
property to the XYDiagram
type to access diagram settings. The Chart Control determines the diagram type based on the series that is added first. We recommend that you access the diagram to configure its settings after at least one series is added to the chart.
Note that you can cast the View
property of the series to the LineSeriesView
type to access line series appearance settings.
- How to create a Spline chart
- How to create a 3D Line chart
- How to Plot an XY Series with a Histogram in the WinForms Chart
- How to Implement the Best Fit Function, and Apply it to a Chart's Series
(you will be redirected to DevExpress.com to submit your response)