BackPrevious Page Next PageNext

Creating Dynamic Charts in Excel

You can make data in a chart map to a single cell in Excel, then when you change the data in a cell, the corresponding change will also be displayed in the chart. This kind of chart is called dynamic chart. To create a dynamic chart in Excel, the chart should use the same data as a banded object or table, which is exported to Excel together with the chart. That is to say, each data value in the chart must correspond to the one in the banded object or table. Moreover, the option Report Format should be selected when exporting the report to Excel.

To have the same data with a banded object or table, you must meet the following conditions for the chart before exporting the report to Excel:

The following example shows how to use the Dynamic Chart feature in Excel. Here the chart inherits the dataset from its parent banded object.

  1. Make sure SampleReports.cat is the currently open catalog file. If not click File > Open Catalog to open it from <install_root>\Demo\Reports\SampleReports.
  2. Create a query named Products in Data Source 1 of the catalog, which contains the table Products with all of its columns.
  3. Click File > New > Page Report to create a page report with a banded object in its first report tab.
  4. Define the banded object as follows:
  5. In the Data panel of the main window, click <New Summary...> in the Summaries node to create a summary named Sum_Price as follows:

    Create a Summary

  6. Drag the summary to the footer panel of the Product Type Name group in the banded object.

    Drag the Summary to the Banded Object

  7. Drag and drop Bar Chart button from the Components panel to the banded header (BH) panel.
  8. In the Create Chart wizard, define the chart as follows:

    The chart displays in the banded object as follows in the design area:

    Insert a Chart

  9. Right-click the chart and select Chart Wizard from the shortcut menu.
  10. In the Chart Wizard, switch to the Layout screen, select Export in the Options box and then select BandedObject from the Mapping Component drop-down list. Click Finish to accept the change.

    Export Setting

  11. Click File > Options. In the Options dialog, check the option Check the availability of dynamic chart for Excel in the General category, then click OK.

    This option is provided to check if the chart can be correctly mapped to the banded object when you save the report or export it to Excel.

  12. Click File > Export > Excel to export the report to Excel (make sure Report Format is checked in the Export to Excel dialog).

    Export to Excel

  13. Open the exported result file in <install_root>\Demo\Reports\SampleReports.

    Exported Result

  14. Change the price of Gold Coast Blend and Colombia El Tambo to 30.00, and you will find that the value of the chart is changed accordingly.

    Change Values in the Chart

Notes:

BackPrevious Page Next PageNext