You can use the chart in an unbound state without binding it to the data source. In such case, add double values to the chart control without using a datasource.
The following example demonstrates adding unbound data to the control.
C# |
Copy Code
|
---|---|
BarSeries series = new BarSeries();
series.Values.Add(2.0);
series.Values.Add(4.0);
series.Values.Add(3.0);
series.Values.Add(5.0);
|
Visual Basic |
Copy Code
|
---|---|
Dim series As New BarSeries() series.Values.Add(2.0) series.Values.Add(4.0) series.Values.Add(3.0) series.Values.Add(5.0) |