Previous Next

Task 3:  Provide data for a chart

In task 1, you created the data source connection and data set that you need. After selecting the data set to use, you must set up the expressions that the chart uses to represent the data graphically. Each type of chart uses data differently. For a pie chart, you must select data expressions that specify:

*
*

You can use different techniques to provide a data expression in a chart. The easiest way to specify the data to use is to drag a column from Data Preview to a field. You can also type the expression or use expression builder to create an expression.

1  

Figure 13-4 Previewing the chart in the upper section of Select Data

Figure 13-4  Previewing the chart in the upper section of Select Data
Chart Preview displays a rough sketch of the chart for design purposes. The final published version looks more elaborate and complete, particularly if you choose to use live data for previews. In Chart Preview, the chart builder uses either live data from your data set or randomly generated sample data, depending on how you set the Enable Live Preview preference.
2  
Use Data from
This report design includes only one data set. Select ChartData from the drop-down list. Select the Show data preview option if it is not selected. In the lower half of the chart builder, as shown in Figure 13-5, Data Preview displays some of the data from the data set.

Figure 13-5 Selecting a data set in the lower section of Select Data

Figure 13-5  Selecting a data set in the lower section of Select Data
3  

Figure 13-6 Supplying a category definition

Figure 13-6  Supplying a category definition
A slice appears in the pie chart for each item in the category. The following expression appears in Category Definition:
row["PRODUCTLINE"]
4  

Figure 13-7 Supplying a slice size definition

Figure 13-7  Supplying a slice size definition
The following expression appears in Slice Size Definition:
row["TOTALORDERS"]
In Data Preview, the TotalOrders column is colored to show that the chart uses the column. The image in Chart Preview changes to reflect the data you specified. The product lines are now the chart categories. The size of the sectors represents the total orders for each product line category.

(c) Copyright Actuate Corporation 2013