Click here to Skip to main content
15,214,166 members

Displaying Charts in SharePoint using Excel Services

Rate this:
4.05 (9 votes)
Please Sign up or sign in to vote.
4.05 (9 votes)
18 Dec 2007CPOL
An article on how to display charts in SharePoint using Excel Services


A chart displays data in a visually appealing way. By using charts, it is very easy to understand and compare data. We can use Office Excel 2007 for creating charts and Excel Services of MOSS to display it in SharePoint.

Excel Services

Excel Services is part of MOSS 2007. Excel Services has a server-side engine for loading Excel spreadsheets, calculating formulas and rendering their output as wide-reach HTML targeting the browser.

Open Central Admin -> Operations -> Services on Server, then Start the Excel Calculation Service on the server if it has been stopped.

Excel Web Access

Excel Web Access is a webpart that displays data and charts from an Excel workbook. It has a similar look to Office Excel workbook.

Creating a Document Library

Create a Document Library in your MOSS Site. Go to Site Actions -> Create -> Document Library to create a document library in your SharePoint site. This document library will be useful to publish our Excel spreadsheets.

Trusted File Location

Excel Services open Excel workbooks that are stored in trusted file locations only. Trusted File location is a SharePoint Document Library, a UNC path, or an HTTP site that is configured as a trusted repository for Excel workbooks.

Add this newly created Excel document library as a trusted file location for storing Excel workbooks. To do this, open the Shared Services Administration Site then click the “Trusted File Locations” link from Excel Services Settings. Now, click “Add Trusted File Location” and add our document library as a trusted location.

Image 1

Creating Charts using Office Excel 2007

We can use Office Excel 2007 for creating different kinds of charts like Column, Pie, Bar, Area, Scatter, etc. See the following image which shows the different chart types available with Office Excel 2007.

Image 2
Chart Types in Office Excel 2007.

In this sample, I'm going to create a Column Chart by using the following sample data.

Image 3

To create a Column Chart, select the data and Click on Insert -> Column (Chart) and select your desired chart. See the following screen - I've selected Clustered Cylinder.

Image 4

The following chart will be created once the chart type (Clustered Cylinder) is selected. And this chart will be named as “Chart 1”.

Image 5

We are going to use Excel Web Access Webpart to display this particular chart. It is also possible to display the Entire Workbook. Once the chart has been created, publish this workbook to the document library. From the Office menu, click Publish -> Excel Services as shown in the screen below:

Image 6

Click on Excel Services, this will open a “Save As” popup dialog and enter the Document Library path to save this file to the Library.

Image 7

“Open in Excel Services” – Once the form is saved, Excel Services will open the Excel workbook in a new browser.

We can add some more options like showing only selected sheets, named items, or adding parameters, etc., with the use of “Excel Services Options”. See the image below which shows the Excel Services Options.

Image 8

These are the different options available. Here we can select the entire workbook, only selected sheets or any named item. In our sample, we are going to display only a chart. Select the “Items in the Workbook”, this will show a list of named items, in our case we have only one item “Chart 1”. Check “Chart 1” from the list. Click “Ok” and save the Excel workbook to the Document Library.

There is one more tab “Parameters” which can be used to pass parameters to Excel services. Excel Services will create a UI by using InfoPath at run time to get input for those parameters.

Now, open your SharePoint site and add the “Excel Web Access WebPart” to your page.

If this WebPart is not in your list then activate the “Office SharePoint Server Enterprise Site Features” feature.

Once the WebPart is added to the page, open the Tool pane. This tool pane contains different properties that will be helpful to display the workbook, part of a workbook or an item in a workbook.

Image 9

Browse and select the workbook from the document library, enter “Chart 1” in Named Item property and enter other properties like rows, columns etc. Now, click Ok. Excel services will render the chart. If the published workbook contains parameters, then an InfoPath form will be displayed along with the chart. InfoPath form will be used to get input and the calculation service of Excel will perform the calculation in the server and render the results back to the browser.

Image 10

It is also possible to use Excel Web Services (EWS) hosted in SharePoint that provides several methods that can be used as an API to build custom applications based on the Excel workbook.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Zabiullah Sheik Ismail
India India
Zabiullah SI is working for an MNC in Chennai.

Blog :

Comments and Discussions

QuestionWhat about SP 2013? Pin
Member 1112012330-Sep-14 0:07
MemberMember 1112012330-Sep-14 0:07 
QuestionWeb part still showing chart/graph once the workbook has been deleted from shared documents library - why ? Pin
pavankasyapa30-Nov-10 1:43
Memberpavankasyapa30-Nov-10 1:43 
GeneralBringing in data from a web page Pin
AlexEvans25-May-10 17:13
MemberAlexEvans25-May-10 17:13 
GeneralAdd Chart to web part, it is simple Pin
itsaranga13-Nov-09 6:59
Memberitsaranga13-Nov-09 6:59 
Question[My vote of 2] Color quality and 3D Pin
IntiSoto27-May-09 11:02
MemberIntiSoto27-May-09 11:02 
AnswerRe: [My vote of 2] Color quality and 3D Pin
Senthil Kumar U6-Oct-09 1:40
MemberSenthil Kumar U6-Oct-09 1:40 
GeneralWhy this chart is not comming 3D ? [modified] Pin
mayuresh.telvekar12-May-09 1:13
Membermayuresh.telvekar12-May-09 1:13 
GeneralRegarding Excel services in sharepoint Pin
bhakti28-Jan-08 22:27
Memberbhakti28-Jan-08 22:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Posted 18 Dec 2007

Tagged as


34 bookmarked