From the Palette, drag and drop a Chart to the summary area of the canvas. The chart type window appears. Select the second pie chart called Pie 3D and click OK:
A pie chart appears in the summary area.
Right-click on the pie chart and select Chart Data (as shown above). The Chart details window appears. Notice that there are two tabs: Dataset and Details. On the Dataset tab, set the Increment type to Group. On the Increment group field, set it to INCIDENT_NAME:
Select the Details tab.
In the Key expression field click the pencil edit icon shown below at the right:
The Expression editor window appears. Click Fields and then double-click on INCIDENT_NAME field to add $F{INCIDENT_NAME} to the expression canvas. Click Apply:
In the Value expression field, click the pencil edit icon at the right. The Expression editor window appears. Click Variables and then double-click on the INCIDENT_NAME_COUNT variable to add $V{INCIDENT_NAME_COUNT} to the expression canvas as shown below.. Click Apply. In the Label expression field, click the pencil edit icon at the right. The Expression editor window appears. Click Label and then double-click on the INCIDENT_NAME field to add $F{INCIDENT_NAME} to the expression canvas. Type + " - "' and then click Variables. Double-click on the INCIDENT_NAME_COUNT variable to add $V{INCIDENT_NAME_COUNT} to the expression canvas as shown in the diagram below. The final expression should read:
$F{INCIDENT_NAME} + " - " + $V{INCIDENT_NAME_COUNT}