Spread Windows Forms 6.0 Product Documentation
Using an UnBound Data Source
Support Options
Spread Windows Forms 6.0 Product Documentation > Developer's Guide > Working with the Chart Control > Creating Charts > Connecting to Data > Using an UnBound Data Source

Glossary Item Box

You can add double values to the chart control without using a datasource.

Using Code

Add data to the series.

Example

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);
 
VB 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)
 

Using the Chart Designer

  1. Select the PlotArea Collection editor.
  2. Select the Series Collection editor.
  3. Select the Values Collection editor.
  4. Set values as needed.

Return to Connecting to Data.

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.