aspnet-8144-components-chart-control-getting-started-lesson-2-create-a-simple-unbound-chart.md
This example demonstrates how to create a Web chart at design time within Visual Studio with manually created and populated series.
To create a simple unbound chart, do the following.
Create a new ASP.NET Web Application or open an existing application.
From the DX.25.2: Data & Analytics toolbox tab, drop the WebChartControl onto the form.
To add a new series to the chart, click the chart’s smart tag, and select Series… in the invoked Tasks menu.
In the Series Collection Editor , click Add…
In the Choose Series View dialog, specify the view type of the series being created.
The ASP.NET Chart Control automatically detects the data type of series arguments. This means that you do not need to specify the SeriesBase.ArgumentScaleType property before providing data for a chart, because it is set to Auto by default. Ensure that the SeriesBase.ValueScaleType property’s default value (Numerical) meets your requirements. Otherwise, you may need to select another value scale type (e.g., the default argument type is Numerical, but you require a Qualitative scale type).
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 is typical for a point to have only one argument and value pair, which corresponds to the point’s X and Y coordinates along the appropriate axes.
In your chart, you can create as many different series as required. You can also combine series of varying view types within the same chart (if the view types are compatible). For example, add a Spline series to the existing Bar series.
Click Close to apply the changes and close the dialog. Your chart now has two different series populated with points – as illustrated in the image below.
Customize the Legend
Add a Constant Line
Display Series in Different Panes
Customize the Crosshair Cursor
See Also