Επεξεργασία

Κοινή χρήση μέσω


Add a chart to a paginated report (Report Builder)

Applies to:  Microsoft Report Builder (SSRS)  Power BI Report Builder  Report Designer in SQL Server Data Tools

When you want to summarize data in a visual format in a paginated report, use a Chart data region. You should choose an appropriate chart type for the type of data that you're presenting. This choice affects how well the data can be interpreted when put in chart form. For more information, see Charts (Report Builder).

The simplest way to add a Chart data region to your report is to run the New Chart Wizard. The wizard offers column, line, pie, bar, and area charts. For these and other chart types, you can also add a chart manually.

After you add a Chart data region to the design surface, you can drag report dataset fields for numeric and non-numeric data to the Chart Data pane of the chart. Choose the chart to display the Chart Data pane with its three areas: Series Groups, Category Groups, and Values.

Note

You can create and modify paginated report definition (.rdl) files in Microsoft Report Builder, Power BI Report Builder, and in Report Designer in SQL Server Data Tools.

Add a chart to a report by using the Chart Wizard

  1. Note

    The Chart Wizard is only available in Report Builder.

    On the Insert tab, select Chart, and then choose Chart Wizard.

  2. Follow the steps in the New Chart wizard.

  3. On the Home tab, select Run to see the rendered report.

  4. On the Run tab, select Design to continue working on the report.

Add a chart to a report

  1. Create a report and define a dataset. For more information, see Report datasets.

  2. On the Insert tab, select Chart, and then select Insert Chart.

  3. Select the design surface where you want the upper-left corner of the chart, and then drag to where you want the lower-right corner of the chart.

    The Select Chart Type dialog appears.

  4. Select the type of chart you want to add. Select OK.

  5. Choose the chart to display the Chart Data pane.

  6. Add one or more fields to the Values area. This information is plotted on the value axis.

  7. Add a grouping field to the Category Groups area. When you add this field to the Category Groups area, a grouping field is automatically created for you. Each group represents a data point in your series.

  8. To summarize the data by category, right-click the data field and select Series Properties. In the Category box, select the category field from the list. Select OK.

  9. On the Home tab, select Run to see the rendered report.

  10. On the Run tab, select Design to continue working on the report.

On charts with axes, such as bar and column charts, the category axis might not display all the category labels. For more information about how to change the axis labels, see Specify an axis interval (Report Builder).