This post describes the use of the tool posted here. The latest changes are found here.
This post will be updated with examples on how to utilize this tool to build various charts. I will add examples upon request. If you have a smashing chart or a special trick, please send it to me and i will post the images here.
Combo chart
The reason for using “chartArea.left:50″ is to align the chart left so that the legend is not truncated.
NOTE: The “Column index” used when setting up the series is one notch down from the index shown to the left of the columns. This has to do with the series only applying to the numeric columns.
How to put multiple charts in one page
Here is a few screenshots showing how to put multiple charts in one page.

You must ensure that the CEWP holding the code is placed below all containers.
Motion chart
URL filter
This filter is applied in the “Custom CAML” section like this:
The configuration:

Use the FieldInternalName of your field – my field is named “Status”.
Manual filter setup filter
This is used to filter on “Single line of text” columns. This filter is applied in the “Custom CAML” section like this:
The configuration:

To get the CAML, select the checkbox “Create a filter field above the chart using”, select “manual filter setup” and then click “Build CAML from selected filters”. You need to know the FieldInternalName of the field and insert it in the placeholder in the CAML.
Grouped by choice column value
I got a request from Michael:
Hello,
Im trying to chart a Calendar, i created a Column called “Category” (its a drop-down box with the categories)
Now i want to create a chart that:
– is a bar chart
– the h axis is “created by”
– the v axis is a the sum of a column that calculate the hours between end and starttime of events (allready solved this with a formular)
– the Bars are grouped by the Creator
– the chart is stacked (allready done)
– the stacked bars show the name of the category
– for each category a specified colour
Here are some screenshots of the list fields
The “Time” field calculates the difference between start and end:

The Category field is a plain choice field:

The series in the chart are made up by one calculated column per choice in the “Category” field:

Make one for each category.
Please make requests, and i will post examples to the best of my knowledge.
Alexander














June 27, 2011 at 5:05 pm |
Hi Alexander, thank you for beeing open and share with all your great solutions. I’ve been looked on all those and find them excelent in day to day activity and with highly flexibility.
I’m trying to customize more this chart functionality and added the isStacked property set to true, but unfortunately if I combine bars with line series I get an strange javascript error, and I’m loosing all the mouse over functionality.
Could you please let me know if its’ posible to use those options?
Many thanks again for your help
Marius
July 7, 2011 at 9:38 am
Hi,
I’m glad you like it.
The option IsStacked is not supported for combochart. Read more here
Alexander
July 13, 2011 at 12:57 pm |
Thanks for reply, for some reason now seems to works fine. Think google have made some changes on their side as I din’t change anything.
August 3, 2011 at 5:04 pm |
Thanks so much for the example for the motion chart type. That helped so much. Great tool by the way!
August 4, 2011 at 3:52 pm |
hi Alexander,
This is awesome work !! I recommended this to many colleagues and they find it very useful in their daily reporting.
I wanted to see if we have a way to create a indicator chart which compares a sharepoint list column to a static benchmark value and show green, red, yellow indicator bar. more like KPI’s.
Thanks in advance and great work again.
-VM
August 18, 2011 at 11:56 pm
Hi,
If you use the Gauge chart you can set options for green yellow and red. There is not any method of obtaining these values “live” now, but if you look at the documentation over at Google’s, you will see that setting up a chart from scratch is fairly easy.
Of course you will face the problem of getting the values from SharePoint.
Take a look and see what you can make out of it.
Alexander
August 8, 2011 at 10:49 am |
Hi,
Thanks for the awesome script.
I was trying to use the geoMap type in order to show values related to some countries.
Since all the countries are in the Middle East region under options i need to put the region value as 145 (this is based on the geoMap help http://code.google.com/apis/chart/interactive/docs/gallery/geomap.html)
When i use the google script and change it there using ’145′ as the value for region it works. But it does not work on this script.
I think the issue is that the field only accepts string.
I tried to put 145, ’145′. none of these work.
If however i put the region as AE then it shows UAE Only.
Do you have a solution for this?
Thanks
August 18, 2011 at 11:42 pm
This should be fixed in v2.9.3 – i hope we can sort out the trouble you are having with the latest version.
Alexander
August 19, 2011 at 5:17 pm
Thanx alexander you are really being very helpfull about it.. cheers
August 14, 2011 at 4:21 pm |
Alexander,
I had all charts working in my environment until I moved the site (as site template) to the production. Now the Charts doesnt appear anymore? It points to the correct script location. Do you have any idea why it might be happening. Javascript is enabled.
Thanks
August 14, 2011 at 5:42 pm
FYI: my environment was a root site in a site collection, but in production it’s a sub site. Does that change anything?
August 15, 2011 at 8:45 am
Hi,
The charts will not survive being moved as a site template as they have a connection to the source list using the list and view GUID.
These GUID’s will change when the site is moved.
I have planned an option to use the displayname for the list and view, but haven’t had the time to complete this feature.
Alexander
August 16, 2011 at 10:39 pm
Hi,
I have posted a new version that lets you save site as a template.
You find it here
Alexander
August 22, 2011 at 9:00 pm |
can this chart across sites in the same collection? Either up or down? I cant get the URL to change, it looks like it has the capability but maybe I missed something.
August 23, 2011 at 8:10 am
Yes, sites in the same collection can be used as long as the user has rights to the sites/lists.
The web selector interface is different for site collection administrators and “the others”. SCA has a dropdown and non-SCA has an input field to write in.
I do have some unresolved issues with the latest release v2.9.3 so if you are using this, try v2.9.2 or wait a day or two for an updated release.
Alexander
August 29, 2011 at 5:56 pm |
Thank you for the update. New question. Is there a way to change the table header text on a table chart. I have a table in an issue list. The data is returned in 2 columns. the status column and the count column. The first column is “Status”: Format as string and merge dup, the second column is “Status”: count, but both headers show status. Like to be able to change the second column to read something else. Or maybe I setup the table incorrectly.
September 4, 2011 at 9:03 am
Hi,
The label is the column name. To have another text on the label, create a calculated column with your preferred name that uses a formula like this:
=Status
Alexander
December 13, 2011 at 6:39 pm |
Hi Alex,
I think the combochart is not showing the correct numbers, if you take a close look, ‘Mars 2010′ is shown twice instead of adding up to just one entry.
Chris
December 13, 2011 at 8:32 pm
Hi,
My bad, if you look at the data source (image below the chart) you’ll see that i have a typo – it should be “March 2011″.
This example does not “merge” the values and therefore the chart is correct based on the data set.
Alexander
December 14, 2011 at 10:59 am
Hi Alexander,
that’s that word I was missing “merge”. I wasn’t sure if this chart is using a merge kind of option or not and obviously it isn’t
Chris
March 20, 2012 at 3:26 am |
Hi Alex,
I have a task list and want to show a pie chart or bar chart by the assigned to and another by status. How do I do this? I downloaded the version 3.1
March 24, 2012 at 12:49 am |
For status:
Column “0″ = Status – Format as string – merge duplicates
Column “1″ = ID – Count
For Assigned To:
Column “0″ = Assigned To – Format as string – merge duplicates
Column “1″ = ID – Count
Alexander
April 27, 2012 at 2:00 pm |
Hi Alexander,
thank you for is fantastic script. I need some advice. I have a bar chart with stack columns and and i would like to have a horizontal line ad the value 100. The legend of the x axis ist 200 – 400 – 600- 800, so it would be much easier to understand the char if you see this 100 line.
britta