ComponentOne Reports for WinForms Designer Edition: ComponentOne Reports for WinForms > Working with C1ReportDesigner > Charting in Reports for WinForms > Charts with Multiple Series

Charts with Multiple Series

To create charts with multiple series, simply set the DataY property to a string that contains the names of each data field you want to chart, separated by semi-colons.

For example, to create a chart showing product prices and discounts you would set the DataY property as shown below:

DataY = "UnitPrice;Discount"

If you want to specify the color used to display each series, set the Palette property to a list of colors separated by semi-colons. For example, the value displayed below would cause the chart to show the UnitPrice" series in red and the "Discount" series in blue:

Palette = "Red;Blue"


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.