Chart with Dynamic Series
This document describes how to create a report with a Chart control bound to data so that all series are automatically created based on a common template, which specifies universal options for all series.
To adjust a Chart with automatically created series, do the following:
- Create a new report and bind it to a data source.
Drop the Chart control from the Toolbox onto the report's Detail band.
To bind the Chart to a data source, in the Properties Panel, expand the Data category and specify the Data Source property.
[!NOTE] Set the report's Data Source property to None after placing the Chart in the Detail band. Otherwise, the Chart repeats at the preview as many times as there are records in the data source.
Select the Chart control once again and click the Run Designer button displayed over it.
In the invoked Chart Designer, select the Chart node in the Chart Structure tree and switch to the Properties panel. Use the Series Data Member property to specify the data field that should provide data for the series names (so that it creates a new series for each record in that data field).
Expand the Series Template option and use the Argument Data Member and Value Data Members properties to define from where to obtain data for point arguments and values.
At this step, the chart's data options are completely defined. It is also possible to customize other Chart properties.
Switch your report to the Preview mode to view the result.