Exercise 1: Using the Chart Web Part
In this exercise you have received some summary sales information that must be presented on the current BI Center SharePoint site. You’ll be using the Chart Web Part to quickly visualize the sales data currently stored in lists.
Task 1 – Add the Chart Web Part to the page
In this task, you will create a new web part page in the SharePoint site and place a chart web part on it.
- In Internet Explorer navigate to http://intranet.contoso.com/sites/BIApplications
- Create a new Web Part Page in the Pages document library
- Click the All Site Content link in the left side Navigation menu
- Click the Create button
- Filter by Page, select Web Part Page and click Create
.png)
- Name the page ChartWebPart and select a layout of Full Page, Vertical
- Select Pages in the Document Library dropdown and click Create
.png)
Figure 2Create Web Part Page
- Add a Chart Web Part to the new page
- Click the Add a Web Part link in the content section of the page
- Select a Category of Business Data in the Categories section
- Select Chart Web Part in the Web Parts section and click Add
.png)
Figure 3Add Chart Web Part
Task 2 – Create a Sales by Country Pie Chart
In this task, you will attach list data to the Chart Web Part and then apply formatting to build a pie chart.
- Connect the Chart Web Part to the data in the Sales by Country list
- Click the Data & Appearance link on the Chart Web Part
- On the new page, click the Connect Chart to Data link
- Choose the Connect to a List option and click Next
- Choose the Sales by Country list in the List drop down and click Next
.png)
Figure 4Choose Chart Data Source List
- Don’t assign a data filter and click Next
- When choosing the bindings of data to field, verify the Y field is set to Sales Revenue and the X Field is set to Country
.png)
Figure 5Set Chart Data Bindings
- Click the Finish button to complete the wizard
.png)
Figure 6Complete Bar Chart
- Customize the chart to render as a 3D pie chart
- Click the Data & Appearance link on the Chart Web Part
- On the new page, click the Customize Your Chart link
- On the Select Chart Type wizard page, select Pie as the Chart Type Category
- Choose the 3D Chart Types and pick the first pie chart template and click Next
.png)
Figure 7Choose Pie Chart Type
- Set the Width to 800px and the Height to 400px and click Next
- On the Chartelementproperties wizard page check the Show Legend check box
- Set the Title to Sales By Country
.png)
- Click the Finish button to complete the wizard
.png)
Figure 9Complete Pie Chart
Task 3 – Create a Sales by Year Chart
In this task, you will attach list data to the Chart Web Part and then apply formatting to build a pie chart.
- Create a new Chart Web Part on the ChartWebPart page
- Click the Add a Web Part link in the content section of the page
- Select a Category of Business Data in the Insert section
- Select Chart Web Part in the Web Parts section and click Add
.png)
Figure 10Add Chart Web Part
- Connect the Chart Web Part to the data in the Sales by Year list
- Click the Data & Appearance link on the Chart Web Part
- On the new page, click the Connect Chart to Data link
- Choose the Connect to a List option and click Next
- Choose the Sales by Year list in the List drop down and click Next
- Don’t assign a data filter and click Next
- When choosing the bindings of data to field, verify the Y Field is set to Sales Revenue, the X Field is set to Year, and the Group by Field is set to Country
- Click the Finish button to complete the wizard
- Customize the chart to render as a line chart
- Click the Data & Appearance link on the Chart Web Part
- On the new page, click the Customize Your Chart link
- On the Select Chart Type wizard page, select the Line as the Chart Type Category
- Choose the 2D Chart Types and pick the Line with no margin chart template and click Next
- Set the Width to 800px and the Height to 400px and click Next
- On the Chart element properties wizard page check the Show Legend check box
- Set the Title to Sales By Year
- Click the Finish button to complete the wizard
.png)
Figure 11Add Chart Web Part