Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Chart with Dynamic Series

  • Last UpdatedNov 18, 2025
  • 4 minute read

To create a report with a Chart control bound to data, in which the all series will be auto-created using the series template specifying common data binding properties for all series, proceed as follows.

The data for all series (the series names along with series points' arguments and s) must be stored in the same data table. Also, the series view type and certain other settings should be the same for all the created series.

In this example the 'GSP' table of the sample gsp.mdb database will be used. This table contains the Gross State Product (GSP) statistics for some US regions.

The main steps of the procedure are:

  1. Create a chart and bind it to data

  2. Specify a series data member and adjust a series template

  3. customize the chart

  4. View the result

Create a Chart and Bind it to Data

  1. Create a new report.

  2. Drag Chart from the Toolbox onto the report's Detail band.

    Note: At this point, the Chart Wizard may be displayed (if its Show wizard every time a new chart is added option is enabled). Click Cancel to close the wizard's window and manually customize the chart.

  3. To bind the chart to a data source, click its Smart tag, and in the displayed actions list, expand the Data Source dropdown selector and click Add New DataSource.

    The Report Wizard is displayed.

    The wizard will guide the user through the process of assigning a data source to the chart. For detailed instructions on the wizard's steps, refer to Bind Report to Non-Dabacon Data, as this process is similar.

    The specified data source is then assigned to the chart's Data Source property. The Data Member property is also set, which specifies which table or view of the dataset the chart should obtain data from, as is the Data Adapter property.

    Note: The report's Data Source property must be set to None. Otherwise, the chart will be blank when previewed.

    Specify a Series Data Member and Adjust a Series Template

    In this example, all series will be created using a series template which is common to all of them.

    1. To specify the data field which is to provide data for the series names, the Series Data Member property must be set.

    2. Next, set the Argument Data Member property.

    3. Define the of the Data Members property, specifying the data fields from which the series obtains the data values of its points.

      Customize the Chart

      • Adjust the Series Name Template

        By default, the name for every series automatically generated by the chart using its Series Data Member property's is obtained directly from a data field in the bound data source. However, it may be necessary to add prefixes or suffixes to these names. The user may therefore customize the Series Name Template object returned by the Series Name Template property to add some text to the beginning or to the end of the series names. For instance, set the Series Name Template.Begin Text property to GSP in.

      • Customize Series Labels

        Set the Series Template.Label.Visible property to No, to hide labels for all series points, and prevent the chart from being crowded with numerous overlapping labels.

      • Customize Axis Labels

        Initially, all axis labels (which in this example show the names of the US regions) are lined up and overlap. To avoid this, select the X-Axis (which is also accessed via the Chart Control.Diagram.Axis X property) and set its Label.Staggered property to Yes.

        It is possible to customize many other properties for the chart, which are not described here.

      View the Result

      The chart is now complete.

      • Switch to the Preview tab to view the result.

        For further information of another method of binding a chart to data, refer to Chart with Static Series.

      In This Topic
      Related Links
      TitleResults for “How to create a CRG?”Also Available in