Creating an Org Chart using Visio 2007 and linking shapes to a SharePoint List

by Oscar 31. January 2009 16:22

Many times during a project, you hit a requirement to have the ability to display an org chart on your SharePoint portal, and because there are many options to do this, it is difficult to know what approach is best for your particular scenario.

Here is a quick way of developing an org chart that the business users can update themselves!  There are many options in terms of what data source you can use, such as Excel, MS Access, SQL Server or any OLEDB or ODBC data source.

For this scenario, we simply configure the Visio 2007 Org Chart to retrieve its data from a SharePoint List.  The possibilities are endless in terms of how that data gets populated into the SharePoint List as well.  For instance, you can write some code to retrieve and cleanup some data before programmatically importing it into the List.

In the end, you would have an org chart that looks something like figure 1.

FIGURE 1 – An Org Chart created in Visio 207, deployed to a SharePoint page and rendered as a PNG image

image

Getting Started

First, create the SharePoint List and populated it with data, it should look similar to figure 2

FIGURE 2 – A SharePoint List representing the org chart hierarchy

image

Notice the Reports To column, this column together with the Person Name allow Visio to build the chart appropriately.  Now it is time to fire up Visio 2007!

  • In Visio, select File > New > Business > Organization Chart
  • Select Data > Link Data to Shapes  a dialog box allows you to choose the data source, select a SharePoint List
  • Type the site url where your lists exists and click next
  • Select the appropriate list and click next

When the wizard finishes, you should be able to see the SharePoint list data on your Visio screen.  Visio brings in all the columns from the SharePoint List, but you can pick specific columns you would like to show on the shapes themselves.

Now select all the rows and drag them to the center of your page.  You should now have an org chart that looks like figure 3

FIGURE 3 – SharePoint List data imported and dragged to center of page

image

This does not look that appealing does it?  So, let’s make a few changes to make it look pretty.  First, you want Visio to actually connect the images and show them in a hierarchal view.  Select Shape > Re-layout Shapes this should put them in the correct order.  Now connect hem by selecting Shape > Connect Shapes

You should now have all shapes connected and in the correct order.
image 

NOTE: We need to make sure that our shapes are always linked to the data source so that if we change the data, it is reflected on our shapes.  Select Data > Automatically Link.. You must link the list item ID with the Shape ID, then click Next.

image

Now simply publish this by saving it to a SharePoint image library and add the image to any page!

Many things can be changed, such as what fields show inside the shape. as well as the color. Remember, you have access to any field on the SharePoint List.

-Oscar

Tags:

Comments

7/1/2009 3:30:55 PM #

Thanks a lot, good find Smile

kamagra United States | Reply

7/23/2009 3:02:19 PM #

This is a great idea that I am looking to incorporate into our College's deployment of SharePoint.  Could this be used to navigate to the appropriate departmental page? What would be the best way to include such links?

Quintin Lang Canada | Reply

7/30/2009 5:18:48 PM #

Great post!  Keep up the good work!

Voguishchic United States | Reply

8/20/2009 9:20:07 PM #

I am really interested in doing this, but I have a couple of questions.
Are you using Visio 2007 Professional?
I can't see any sharepoint lists, but I am using Visio Standard.
And are you doing all this on the SharePoint server or from your desktop?
We use SharePoint Services 3.0 does that matter?

Thanks in advance
Keith

Keith United States | Reply

8/20/2009 10:01:54 PM #

It is Visio Pro.
I just upgraded and got it to work.

Thanks
Keith

Keith United States | Reply

9/23/2009 1:41:20 PM #

Pingback from petestilgoe.com

Creating an Org Chart using Visio 2007 and a SharePoint List «  PeteStilgoe.com

petestilgoe.com | Reply

8/14/2010 2:47:09 PM #

Pingback from grillrestaurant.interactiveinfonet.info

Grill restaurant - And grill - Chilis bar and grill restaurant

grillrestaurant.interactiveinfonet.info | Reply

9/7/2010 7:22:33 PM #

Pingback from artinlight.interactiveinfonet.info

Art house light print - Art house - Art in light

artinlight.interactiveinfonet.info | Reply

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About Oscar

Oscar Medina - SharePoint Solutions Architect

I am a SharePoint Solutions Architect and Managing Partner at SharePointAce Consulting Group, LLC.  I have over 13 years of software development experience. 

Previously a Consultant at Microsoft Consulting Services (MCS) North West Region with focus on the SharePoint Products and Technologies Platform.  I have been involved with SharePoint since it's first version (SharePoint 2001) and have grown more gray hair providing solutions ever since :)

Author of the CQWP – Recurring Calendar Events at http://cqwprce.codeplex.com

 

Follow SharePointAce on Twitter! Follow me on Twitter.


Contributor to the book:

 

Occasional Speaker at SharePoint Saturday - SharePoint Saturday

RecentComments

Comment RSS