windowsforms-2457-controls-and-libraries-chart-control-getting-started-lesson-1-create-a-simple-unbound-chart.md
This example demonstrates how to construct a chart at design time within Visual Studio with manually created and populated series.
To create a simple unbound chart, do the following.
Start MS Visual Studio and create a new Windows Forms Application or open an existing one.
From the DX.25.2: Data & Analytics toolbox tab, drop the ChartControl onto the form.
To add a new series to the chart, click the chart’s smart tag, and in its actions list, click the Series… link.
Then, in the invoked Series Collection Editor , click Add….
In the Choose Series View dialog, specify the view type of the series being created.
XtraCharts automatically detects the data type of series arguments. This means that you don’t need to specify the SeriesBase.ArgumentScaleType property before providing data for a chart, because it is set to Auto by default. Just make sure the default value of the SeriesBase.ValueScaleType property meets your requirements for some view types. Otherwise, select another value scale type (e.g., for the Bar series view).
To manually add points to your series, switch back to the Points tab. Although, some series view types may require more than one value for each point’s argument (e.g., in Bubble or Stock series), it’s more typical for a point to have only an argument and value pair, which correspond to the point’s X and Y coordinates along the appropriate axes.
In your chart, you can create as many different series as required. Moreover, you can combine series of different view types within the same chart, if these view types are compatible. For example, add a Spline series.
To apply the changes and quit the dialog, click Close. Now, your chart has two different series, populated with points.
The chart will look like the following image.
Enable Data Point Markers
Customize the Legend
Add a Constant Line
Display Series in Different Panes
Customize the Crosshair Cursor
See Also