2D Chart for WinForms | ComponentOne
Charting Data / Entering and Modifying Chart Data / Mixing ChartDataArray Inputs
In This Topic
    Mixing ChartDataArray Inputs
    In This Topic

    C1Chart allows some ChartDataArrays to be bound, and others to be set using the AutoEnumerate property of the ChartDataSeries, or by using the CopyDataIn() method of the ChartDataArray object. When data bound, the chart uses all of the bound data as its source of data for specified series data, and presents it in graphic form on the surface of the chart as directed by the series and other chart properties. When the AutoEnumerate property is set to True the x values of the ChartDataArrays/series will automatically set to their index value. While being able to set the data series to these different behaviors provides maximum flexibility, it also requires that excess default series are removed.

    For example, the bar chart shown above contains only a single series (containing the number of ComponentOne products purchased by a company). So if data binding were used to provide input for C1Chart, then 3 of the 4 default chart series would need to be removed. Removing these series can be done at design time or runtime.

    See Also