16.08.2011 I have released version 2.9.3. Read about it here
05.06.2011 I have released version 2.9.1. Read about it here
05.05.2011 I have released version 2.8.5. Read about it here
27.03.2011 I have released version 2.8 featuring different filtering methods. Read about it here
*** See bottom of article for change log on older versions ***
Since i posted the previous version of the solution that utilizes the Google Chart Tools / Interactive Charts (aka Visualization API), Google has updated their API and made the previous version more or less obsolete.
NOTE:
I have made a “bridge” between Google’s Visualization API and SharePoint. How the charts render or function it up to Google to decide – it is their “product”. Refer the various configuration options by following the link from the “Edit chart UI”.
Read Google’s terms of Use here.
Google’s Data Policy on this charts
All code and data are processed and rendered in the browser. No data is sent to any server.
This new release features these chart types:
Map | Motion Chart | Organizational Chart | Pie chart | Scatter Chart | Table
Other modifications made:
- All code in one file: “ChartUsingGoogleVisualizationAPI.js”
- In the CEWP: Refer the above file, jQuery (fixed external link) and the Google jsapi (fixed external link)
- Chart configuration list is automatically created if it is not already present
The solution is tested in IE8, Google Chrome 5.0.375.127 and Firefox 3.6.8.
Some screenshots (from v2.0 – changes introduced in subsequent versions are not reflected her):
Not all chart types are presented.
When first adding a chart CEWP to a site, the configuration list is created:

Press OK:

Column chart – counting unique values per country:


This chart type merges all “lines” where the country is the same, counting “fruits” in the choice column named “Fruit or vegetable”.
Motion Chart:



The “date” column can be a SharePoint data-column, or a “US formatted” string (still formatted as “Date in the UI”) in the format “mm/dd/yyyy”. Refer the “Instructions for MotionChart” link in the UI.
Organizational Chart:



This is the data that makes up this chart. Note that it is built with various calculated columns – no need for it to render as HTML in the list – it is “raw data”.
More examples – including custom CAML-queries will be added on request.
The new GUI from v2.6.5 (introduced in v2.5)
The Code:
This is the CEWP code:
<div id="MyChart1"></div> <script type="text/javascript"> /***************************************************** Address all containers *****************************************************/ // All charts must be represented by a container with a unique id. This container must be present in the page arrOfChartContainers = ["MyChart1"]; </script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript" src="http://www.google.com/jsapi"></script> <script type="text/javascript" src="/test/English/Javascript/ChartUsingGoogleVisualizationAPI.js"></script>
The placeholders can be inserted in other CEWP’s as long as they render before the chart is initiated (place them above the “Chart CEWP”).
It is essential that the scripts tags for “jsapi” and “ChartUsingGoogleVisualizationAPI.js” are placed below the script tag that defines the “arrOfChartContainers”.
The code for the file “ChartUsingGoogleVisualizationAPI.js”:
Download code from this location
This link can contain different “versions”:
- ChartUsingGoogleVisualizationAPI_vX.Y.Z.js – Uncompressed code
- ChartUsingGoogleVisualizationAPI_vX.Y.Z-min.js – Minified using YUI Compressor to reduce the file size
- ChartUsingGoogleVisualizationAPI_vX.Y.Z-packer.js – Compressed/obfuscated using Dean Edward’s Packer to further reduce the file size
You must update the script name in the CEWP to reflect the version number.
Note:
When new versions are released, they will be placed in a folder with the version number as label. Be sure to download the latest version.
If you are using a browser other than IE, right click the file and select “Save link as” or “Save linked content as…”.
Tip:
To make it convenient for end users to use this charting tool, create a few CEWP’s with your favorite setup (1 placeholder, 4 placeholders in a table form and so on). Export the CEWP and upload it to your web part gallery (in the root of the site collection).
You can now add it as a regular webpart from the “web part selector” in edit page mode.
Enjoy!
Alexander
27.03.2011 : New features are described here
19.10.2010 v2.7 is released. You find it in the “download section” above This version is the final fix (i hope…) for the web selector problems for non Site Collection Administrators (SCA).
For SCA’s there are no changes, but for those not SCA, I have abandoned my attempt to auto populate a web selector and gone for a input field. The user must write the URL of the web to load the list collection from. The reason for this is the fact that the method “GetAllSubWebCollection” is not accessible to non SCA’s, and that the manual iteration trough all webs caused prompts for credentials as it hit webs the current user did not have access to.
You will still get a credential prompt if you try to load the list collection for a web you have no rights to, but you will not get stuck in a “endless” loop of credential prompts.
New features:
In this version i have added the option to restrict edit access for a individual chart to a specific SharePoint user group. You find this setting in the Advanced option area in the “Edit Chart GUI”:

This is no “real” security setting as it only skips the rendering of the “edit chart button” and does not restrict the edit rights to the chart configuration list. If you want a true security setting you must change the permissions for each “chart” in the configuration list, or the permission for the configuration list itself.
v2.7 requires you to add one column of type “Single line of text” to the chart configuration list. The name of the field must be exactly “EditAccessGroupID” (without the quotes). Optionally you can delete the configuration list and have the script recreate it. The latter will result in you loosing all your existing chart configurations.
05.10.2010 v2.6.5 unintentionally made it impossible for other than site collection administrators to select web. This update (v2.6.6) fixes this issue. For uses that are not site collection administrators, the loading of the web selector may take a few seconds extra.
The check for edit page rights has been removed due to feedback from users that had problems editing charts. To restrict editing of the charts, manage user right for the configuration list – all users must have at least read access!
28.09.2010 Still some issues with the web selector as the v2.6.5 unintentionally made it impossible for other than site collection administrators to select web. I’m working on an updated version that will fix this. In the meantime, use v2.6.4 if you are not on a managed path…
23.09.2010 A new release (v2.6.5) has been added to the download section. This intends to fix the empty web selector for users with site collection on a managed path.
22.09.2010 There are some unresolved issues with the current release. You can follow the progress in the comment section below.
19.09.2010 A new version (2.6.1) is added to the “download section” – see bottom of article. It features enhanced functionality for selecting web. It now let you pick freely from all sites within the site collection (siblings, parent sites and subsites). This version may contain bugs, so please let me know if you find any.
14.09.2010 Small update to the code to fix the “Initial state” in motion charts, as well as some minor bug fixes. I have moved the files to my home server for you to download. This provides a better solution then manually highlighting and saving 2000+ lines of code. Please note that the file now come in three different “versions”. Read more in the “download section” below.
09.09.2010 Small update to the description regarding update from v2.0 to v2.5. I forgot to mention another field required to be added to the Chart configuration list: ListBaseUrl. This in addition to the already mentioned “ChartFormatters”. I have also removed an alert that was left in the code (line 40).
Christophe notified me of a problem with the 2010 compatibility in sub-site “homepage” – which is a wiki page. The CEWP HTML handling in SP2010 is a bit “different” than in SP2007. When editing the HTML source code, it actually pulls the contents generated by the script into the edit dialog and does not use the content that was originally saved to the CEWP… This is a bit of a headache!. A workaround for the wiki-pages is to use the “Content Link” property for the CEWP and link to a .txt file with the CEWP code placed in a document library (alongside the other scripts).
06.09.2010 Updated the script “ChartUsingGoogleVisualizationAPI.js” and the CEWP code. The version number is notched up to 2.5 and the changes are:
- Added the ability to chart data from all ascending parent sites and all first level subwebs of current site
- Added a few formatter options in the UI – refer the linked resources for instructions (thanks to Paulo for the tip).
- Added new “action” for formatting as % (value*100).
- The solution is now SharePoint 2010 compatible
- Enhanced the UI for editing charts – all options and columns are now directly editable.
- No more need to specify the “userListGuid” and the “userListBaseUrl” in the CEWP code.
- The naming of the charts in the Chart Configuration list is enhanced – it now prefixes the chartId with “location.pathname” to prevent overwriting an existing chart when reusing the CEWP code in another page (thanks to Christophe for the tip).
- Edit chart is now done in the standard “Browse mode” and not in “EditPage mode”. The edit button is found in the top left corner of the chart. The button is only visible for users with “Edit page rights” and does not show on printouts.
- And more…
Note: This update introduces two new columns in the configuration list (GoogleVisualization_InteractiveChartsConfig). To reuse the existing Chart configuration list you must add one field of type “Multiple lines of text (Plain text) named “ChartFormatters” and one field of type “Single line of text” named “ListBaseUrl”. Optionally you can delete the Configuration list and have this solution automatically recreate it for you.
Please note that the CEWP code has changed alongside the code for the file “ChartUsingGoogleVisualizationAPI.js”.
Note about existing charts:
All your existing charts will need to be updated with the new “page id” in the chart configuration list (GoogleVisualization_InteractiveChartsConfig). Look at the new configuration item that is automatically added – copy it’s name and update your existing chart configuration – while deleting the newly added (empty) chart configuration.
27.08.2010 Small update to the file “ChartUsingGoogleVisualizationAPI.js” to fix a formatting issue when using object literal notation in the chart options.













August 23, 2011 at 7:47 pm |
I really liked the article, and the very cool blog
October 4, 2011 at 3:00 pm |
Is there any way to hide the content around the chart other than turning off the editing menu selection? I am showing the chart in a relative div other than the normal way and the menu and item count are taking up space and look out of place.
October 8, 2011 at 9:55 am
Hi,
You could turn off the itemcount in the API – the edit menu must be hidden like this:
<style type="text/css"> #MyChart1_editChartBtn{ display:none; } </style> <script type="text/javascript"> if(GetUrlKeyValue('edit')==='1'){ showEditBtn(); } function showEditBtn(){ if($("#MyChart1_editChartBtn").length===0){ setTimeout(function(){ showEditBtn(); },100); }else{ $("#MyChart1_editChartBtn").show(); } } </script>Append this code to the CEWP.
This code expects the chart container ID to be “MyChart1″. It provided an option to show the edit chart button by passing “edit=1″ in the URL like this:
/test/English/Charts/Pages/ByStatus.aspx?edit=1
Alexander
October 20, 2011 at 12:58 pm |
Hello,
im trying to chart a Calendar, i created a Column called “Category”(its a drop-down box with the categorys)
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
Did you got any idea i could solve this?
October 25, 2011 at 11:11 am
At the moment i got it to work, only 2 Problems persist:
- The colour for each category
- and the categorys with the value of the duration
Could you help me with this Problem, Alexander?
October 28, 2011 at 11:46 pm
Hi,
I have received your email, but keep in mind that this is a one man effort and i do have many requests and emails. I try to answer all questions, but it may take some time to get to your question.
I have posted the answer to your request in the “Examples-post” here
Alexander
November 2, 2011 at 6:34 pm
Thanks Alexander,
thats really awesome, its exactly what i was looking for!
By any Chance, is there a way to give specified Categories a specified colour?
Michael
November 4, 2011 at 11:24 am
Oh, im so dump…. Im sorry for the Question, after i checked my categorys today if seen that it display all of them, so i just have to add the color-code and everything is working.
Special thanks to you, Alex.
You are one of the best SharePoint JS Guides!
November 6, 2011 at 9:15 am
I’m glad you figured it out.
Alexander
November 8, 2011 at 5:07 pm
Btw is it possible to display exactly the same in a Pie Chart with only 1 Creator.
I try to add the Categorys and the creator and filtered the specified User with CAML, but he cannot display the Piechart.
November 10, 2011 at 1:04 pm
And is there a way ( im using the Statistic in a Calendar) to refresh the Statistic when you switch to the next or previous week?
I think this isnt that easy to resolve, or?
November 27, 2011 at 1:12 am
Hi,
Sorry for the delay, but I’ve had a lot to do lately.
To make this in a pie chart select “Category” as first column – “Format as string – merge duplicates”, then “ID” as second column – “Count”.
To filter by current user, select “Use custom CAML (overrides selected view)” and then “Get filter value from this profile property:ID”.
Use this CAML:
<Where><Eq><FieldRef Name='Author' LookupId='TRUE' /><Value Type='User'>{}</Value></Eq></Where>
Edit: the last question of yours is not easy to accomplice – sorry.
Alexander
November 28, 2011 at 11:35 am
Hello Alex,
thanks for your reply.
the refresh would be great, because i want to check previous and next Weeks on this Calendar too, did you got any idea to solve this Problem?
Btw. Here is the How-To, how i made the Pie-Chart Version:
If tried your Versio, but it doesnt fit my wishes.
So i tried the following:
1. Column: “Category” – Format as String – m,erge Duplicates
2. Column: “Time” – Sum
Costum-CAML:
USERNAME
Its working, i would be just great to have the rights colours for the categorys.
Thanks,
Michael
December 1, 2011 at 6:29 pm
Hello Alex,
if its not possible to use the Calendar Buttons to jump to the next week, would it be easier to add own buttons to change the Chart to the next or previous week?
Im asking because i added the Charts now to a new site and open it in a modal Window, it would be great to have 1 Buttons with them i could jump to the next week or previous week.
Michael
December 4, 2011 at 11:43 pm
Hi,
Is this SP2007 or SP2010? I looked at the calendar and if this is SP2007, it might be possible to pull down the value from the URL and use a URL-filter on a calculated column.
Let me know what SP version you are using and i will take a look.
Alexander
December 5, 2011 at 10:55 am
Hello Alex,
yes im using SP2010 Foundation. What idea did you got?
Im not sure, its possible to use a calculated column as an URL Filter?
December 5, 2011 at 7:53 pm
Hi,
I had a typo in my previous comment – as you can see from the updated comment: In SP 2007 it could have been done. In SP2010 however, the calendar is much more complex so i cannot help you with this one at the moment – if I find a reliable method of getting the date range in the calendar view I could come back to it.
Alexander
December 7, 2011 at 1:24 pm
Hello,
oh, was hoping you got a solution for SP2010.
When i move over the “Next Week”Button on SP he is showing me the information.
Javascript: MoveToDate(’30.12.2011′,’WPQ1′);
Maybe its possible to request the shown Date before loading the Chart’?
Michael
December 7, 2011 at 1:37 pm
Hi, The calendar on SP2010 loads asynchronous and i would have to override built-in functions in SharePoint to detect the change of date. I have no solution at the moment. If i find one later on, I’ll let you know.
Alexander
November 16, 2011 at 12:34 am |
Why would i have a jQuery error out of the blue where it indicates that the query is not able to locate the ListGuid?? When i enter the ListGuid manually to the URL for the one that is causing the error it loads immediately..
Error exactly:
An error occured when running the query for the chart: TC1.
Please check the parameter(s):
ListGuid:
{listguid… }
November 16, 2011 at 12:57 am
Have you updated jQuery? – there might be some issues with the latest v1.7 as i haven’t had the time to test it.
Alexander
December 13, 2011 at 11:45 am |
Hello Alex,
if got a new Question, i allready tried it in serveral Ways but the result wasnt that good.
I need a Chart in my Calendar, the Chart should show the Title of a the Event when the its one of 6 categorys, thats no problem.
i created new columns and used them like the columns for the Time.
But when i “format as string – merge duplicates” the creator and add the columns for the title as “count unique – excluding blank” he is always showing the right Events with the Titles and one bar with all Events merged together as a own point.
Did you got any idea, Alex?
Michael
December 21, 2011 at 12:13 am
Hi,
Sorry for the delay, but i have been busy,
I’m not quite sure what you are trying to accomplish here – without having images I’m just guessing, but could you use the “option” isStacked = true?
If this is far out, you could send me some screenshots.
Alexander
December 13, 2011 at 5:44 pm |
It is really nice to have this API with sharepoint. I have a questions now, I am using querystring to get variables then show the pie chart. How could I set defaule value for querystring variables when first time visit the page.
here is my CAML for the paie chart:
{url:Dept}
{url:Dept}
If this pie chart got the variables from querystring, it will show correctly. But every time when first visit the page, it will show a big red box with “The url-filter for “undefined” is missing.” in the box.
I really don’t know how to git rid of this problem.
December 13, 2011 at 5:48 pm
oh, the CAML code disappear, okay, let me replace the signs,
“Where”
“Or”
“Eq”
“FieldRef Name=Title/”
“Value Type=Text”{url:Dept} “/Value”
“/Eq”
“Eq”
“FieldRef Name=ParentDepartment/”
“Value Type=Text”{url:Dept}”/Value”
“/Eq”
“/Or”
“/Where”
Hope it is working.
December 21, 2011 at 12:18 am
Hi,
The intended use for the URL filter is to have a link rigged with the filter value – the user then clicks this link and thus already have the filter in place.
In the current release there is no support for a default value for the filter.
If you use a filter value corresponding with the FieldInternalName of the field you are applying the filter to, the error message will at least be better.
Alexander
December 13, 2011 at 6:58 pm |
For the life of me I haven’t been able to recreate the line chart example shown above. what kind of sharepoint list is required to build a chart showing company performance like in the example?
Chris
December 21, 2011 at 12:22 am
This is created from a simple list with three columns: year, sales and expenses.
year sales expenses
2005 10000 8000
Alexander
December 21, 2011 at 11:43 am
Thanks, makes sense when you see it
Now I only have to figure out how to transfer my access data to that type of list but thankfully I know an ‘access master’
Chris
January 5, 2012 at 5:37 pm |
Is there a way to get the numeric values for the bar chart to display inside the bars themselves? I know that if I mouse over the bars, the numbers will show but I would like to take a snapshot of the chart with all the values showing.
–Jon
January 9, 2012 at 7:08 pm
Hi,
This is not supported by the Google Visualization API, sorry.
Alexander
January 11, 2012 at 3:52 pm |
Hello Alex,
after the new year im facing a problem with the dates, the charts doesnt show me the current week anymore, its just showing me the last week, at every chart.
(yeah i know i asked many times for the way to jump to the next week, but thats not that i want to have)
Did you allready noticed this problem?
Its very urgent so i hopefully get a fast answer from you.
Michael
January 11, 2012 at 4:03 pm
Hi,
I’ll need to see the setup of your char to help you with this one. Send me some screenshots and I’ll take a look.
Alexander
January 11, 2012 at 6:21 pm
Hello,
i will send you the screenshots in 2 hours, hopefully you will find a solution.
Maybe thats also a solution to change the associated date for the charts
January 12, 2012 at 9:30 am
Good Morning Alex,
what Screenshots do you need? Just the configuration of the Charts? Or any special other Pictures?
Michael
January 12, 2012 at 9:43 am
The chart configuration with any custom CAML and the chart itself. If you are using a view as source I must have the view filter also.
Alexander
January 12, 2012 at 9:59 am
Okay, i sended you 3 pictures, 2 of the config and one of the chart itself.
hopefully you will find something.
January 11, 2012 at 6:21 pm |
Hello,
i will send you the screenshots in 2 hours, hopefully you will find a solution.
Maybe thats also a solution to change the associated date for the charts
January 19, 2012 at 9:45 am |
Hello Alex,
after all this troubles, i never found a solution for my problem.
But if got another question for now, i think that should be a easy one.
With the Charting Tools of SharePoint 2010 Enterprise, is it possible to build up the some Charts like with your solution?
Michael
January 19, 2012 at 9:47 am
Hi,
I have no knowledge of the chart tool in SharePoint Enterprise, sorry.
Alexander
January 19, 2012 at 9:57 am
Thanks Alex,
if you found a solution for my problem please tell it to me.
Michael
January 25, 2012 at 5:56 pm |
I would like to limit the data to X data points without creating a new view. Is there a way to implement in custom CAML?
January 25, 2012 at 5:57 pm |
Ah, my tag was removed. Is there a way to implement “RowLimit” in custom CAML?
Thanks.
January 31, 2012 at 9:14 pm
Hi,
In the current release there are no “API place” to insert an itemlimit without reading from a view.
Alexander
January 27, 2012 at 8:20 pm |
Is there a current location for the code and perhaps consolidated instructions for this capability? So far, I’ve seen a variety of blog entries, references to a web site that no longer responds, etc. so I haven’t been able to locate a currently accessible site to get the code.
January 27, 2012 at 9:04 pm
Hi,
The link to the code has been updated. I had a redirect from my old server to the new, but this has proven to be a be a bit unstable…
The reason for the many posts on this topic is the fact that it has been updated many times since 2010 when i first posted the solution.
I have not had the time to sum it all up in one post yet, but i have planned to do a post on v3.0 – which i “silently” released in november 2011.
My problem is that i have far to many solutions posted, and far to many questions and feature requests both on existing solutions and updates to support SharePoint 2010 to be able to keep them all updated at all times.
Alexander
February 4, 2012 at 1:25 am |
Thanks for an excellent code. This saves lot of time and money for most SP developers.
I have a unique requirement, and I am trying to figure out if this can help.
I have a sharepoint list with the following columsn.
US State Code (US-NJ, US-NY ete), Sales Company, Is Active (Boolan)
Every US state can have multiple sales companies
I need to show a US map which shows all the states, when mouse is hovered on a state, the list of Active Sales companies should be shown. Is this possible ?? Can anyone point me to some example that can help me solve this.
February 10, 2012 at 12:19 am
Hi,
I’m not sure you can do this by US state codes. You might get it working by using a map and “lat/long” markers to make a pin on each position in the map.
Alexander
February 6, 2012 at 7:07 pm |
Is it possible to query multiple lists and display the data in one chart? I have multiple lists that I would like to rollup into one chart.
February 10, 2012 at 12:21 am
Hi,
No, not without modifying the solution to merge multiple datatables. I’m afraid I cannot implement that in this solution.
Alexander
February 9, 2012 at 5:16 pm |
Hi
Forgive me for being a complete novice but I am using the UI version of SP2007 and I have a couple of questions.
What is the ‘CAML’ and is it possible to use when you don’t have access to SPD?
Can someone help me with some code that will generate several google interactive visualisation charts from different list views on one page?
February 10, 2012 at 12:28 am
Hi,
This solution does not require access to SPD.
To have multiple charts in one page, modify the CEWP code like this:
Ensure you grab the latest version of the script from here
Alexander
February 15, 2012 at 3:57 pm |
Hi Alexander
I have managed to get this working and I would like to thank you for your amazing hard work and for very graciously allowing it readily available to all.
I wondered if you there was a way to add Column labels to the actual columns or for them to be included in brackets next to the for each of the coordinates of x axis. i.e My x axis consist of employee names and the values are the number of project tasks they have completed. so I would like to see ‘employee (x)’ or for (x) to show on the actual column instead of clicking on it. Is this possible to do?
Another question: Is there anyway to add a HTML link to a column, pie or bar chart like you can do with a Org chart?
Many thanks again for your help.
February 19, 2012 at 5:53 pm
Hi,
I’m glad you like the solution.
Displaying the “label” in the column is currently not possible. I hope the Google chart team will add this later on.
The link can be customized by adding this example function to your CEWP code and tweak it to match your setup:
function chartSelectionHandler(data,chart,chartID){ var selection, item, x, y, z; selection = chart.getSelection(); if(selection.length>0){ item = selection[0]; if(item.row!==undefined){ x = data.getFormattedValue(item.row, 0); if(item.column!==undefined){ z = data.getFormattedValue(item.row, item.column) y = data.getColumnLabel(item.column); } } if(x===undefined && y===undefined && z===undefined){ return; } // Create your filter alert("These are the variables you can use for your filter:\n\nx = "+x+"\ny = "+y+"\nz = "+z); if(confirm("Open filtered list?")){ if(chartID==='MyChart1'){ window.open('/test/English/Charts/Lists/ByStatus/AllItems.aspx?FilterField1=Status&FilterValue1='+x,'','width=1000'); }else if(chartID==='MyChart2'){ window.open('/test/English/Charts/Lists/Coffee2/AllItems.aspx?FilterField1='+y+'&FilterValue1='+z,'','width=1000'); } } } }Alexander
February 18, 2012 at 1:18 am |
I have seen examples for Line Chart using query to access google spreadsheet but could not find a single example for Annotated Timeline or Time Series charts using query
Any help is appreciated.
February 19, 2012 at 5:58 pm
This solution can query SharePoint lists only. You should ask your question here: http://groups.google.com/group/google-visualization-api
Alexander
February 22, 2012 at 12:13 am |
Is it possible to use this in conjunction with user input to get the bar graphs? For example, have the data set up in a list and give the user a percentage input and have the bar graph value calculated as a percent of the list value?
March 1, 2012 at 12:06 am
This is not possible using this solution.
Alexander
March 18, 2012 at 12:35 am |
hi Alexander,
have been trying to implement your solution for a while now…
i was successful with the earlier version that came out before version 2.0 and above. that worked fine as i created the config list manually. now with the latest version i can get it to work at all…
i added the 11 line CEWP code in my CEWP even uploaded it to my doc library and referenced it in my CEWP, but nothing is happening…reverting to the earlier versions everything works.
please help…
March 23, 2012 at 11:42 pm
Hi,
You might have to delete the config list (ore at least rename it to trigger the solution to recreate it).
It might be a problem with the solution if your master page has been modified. Try enabling the console in IE (press f12) to look for error messages.
Alexander
March 22, 2012 at 5:56 pm |
Hi Alexander – I am having trouble selecting a list view. I have been using your application for a while and have several sites with tables on them that call from a list somewhere else. Depending on the site, I would select a view from the chart configuration dialogue box and everything would work. But now the Select View dropdown doesn’t show anything but “”. Even though the views still exist on my list, I can’t see or select them from the configuration dialogue. Any ideas? I don’t think I’ve changed anything. I don’t know why this might happen.
March 23, 2012 at 11:45 pm
Hi,
Are you using the latest version?
Please ensure your web selector has the correct value as this is used as “BaseUrl” when retrieving the list views.
Alexander
April 24, 2012 at 8:37 pm |
Hello,
I would like to display the total from a Pie Chart. I have tried a couple coding ideas in the Source Code of SharePoint, but those did not work properly. Is there a direct way in the GUI to get this item to display?
April 24, 2012 at 9:30 pm
Hi, I’m not quite sure what you want to do. If you could provide some more details I might be able to help. Alexander
April 24, 2012 at 10:05 pm
I would like to see something like this for a pie chart.
from this forum….http://sharepointjavascript.wordpress.com/2011/05/05/charting-for-sharepoint-using-google-visualization-api-update-05-05-2011/
# 4
April 24, 2012 at 10:21 pm
Hi
You find this setting in the “edit chart GUI”.
Alexander
April 24, 2012 at 11:31 pm
Could you please be more specific because I do not see that in my version.
Is there a variable that I need to set under “Options”?
April 25, 2012 at 8:22 am
Hi,

This screenshot is from v3.2. If you are using a version earlier than v2.8.5 you will not find it.
Alexander
April 26, 2012 at 10:13 pm |
Alexander, I found your solution in the book SharePoint 2010 at Work and absolutely everything I’ve done works exactly as it should, so great job! However, I’m still not understanding ‘placeholders’ in other CEWP on the page and how I can make them work to display additional charts so that they can be side by side instead of top to bottom. I have my initial CEWP at the bottom of the page with a link to the CEWP.txt on the site. Only by updating that file can I add the charts and of course, they arrange top to bottom. I’m trying to replace a static chart document that has four rows of charts, two across with a dynamic dashboard. Any suggestions? Feel free to send me off to wherever this might have been addressed before.
April 29, 2012 at 9:03 am
Hi,
You find an example in this article
You should upgrade to v3.2 of this tool. You find the link at the top of this article.
Alexander
April 30, 2012 at 3:33 pm
Alexander,
This was perfect (and life affirming for me as I can’t code my way out of a box and actually figured this out on my own late Friday). The down side is that when I updated to v3.2, no matter how I configured the slices option for my pie charts (primarily using double quotes instead of single), I still got a JSON syntax error. Might this be because I am still using IE7? Please note this is not by choice but is a requirement of my employer.
Thanks again for your help. I know you are busy and your personal attention to questions and problems is appreciated.
Regards,
Barbara
April 30, 2012 at 3:37 pm
Send me a screenshot of your configuration screen and I’ll take a look.
You find my email here: http://sharepointjavascript.wordpress.com/about/
Alexander