Comments on: Finally: Dynamic charting in WSS, no code required! – Part 2 http://www.endusersharepoint.com/2009/04/28/finally-dynamic-charting-in-wss-no-code-required-part-2/ No GeekSpeak on SharePoint 2007 WSS and MOSS Sat, 29 May 2010 02:41:20 -0400 http://wordpress.org/?v=2.8.6 hourly 1 By: Rajiv Vishwa http://www.endusersharepoint.com/2009/04/28/finally-dynamic-charting-in-wss-no-code-required-part-2/comment-page-1/#comment-64678 Rajiv Vishwa Sat, 08 May 2010 00:34:12 +0000 http://www.endusersharepoint.com/?p=1539#comment-64678 Hi, I'm still having that offset label prob, can you please help. Check the screenshot http://img.a4apphack.com/other/sharepointdash-barchartsprob.jpg The code which I'm using is here, http://gist.github.com/394176, this code displays the graph properly except 1. One less than the total columns 2. Bar labels does not correspond to the value Claudio, I'm in need of your help. Hi, I’m still having that offset label prob, can you please help. Check the screenshot http://img.a4apphack.com/other/sharepointdash-barchartsprob.jpg

The code which I’m using is here, http://gist.github.com/394176, this code displays the graph properly except
1. One less than the total columns
2. Bar labels does not correspond to the value

Claudio, I’m in need of your help.

]]>
By: Tahir http://www.endusersharepoint.com/2009/04/28/finally-dynamic-charting-in-wss-no-code-required-part-2/comment-page-1/#comment-55549 Tahir Thu, 15 Apr 2010 18:05:37 +0000 http://www.endusersharepoint.com/?p=1539#comment-55549 I have extended this technique to display the Intractive Charts if(typeof jQuery=="undefined"){ var jQPath="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/"; document.write(""); } var ColValue = new Array(); var ColName = new Array(); // Getting the Data $("document").ready(function(){ var arrayList=$("td.ms-gb:contains(':')"); var coord= new Array(); var labels= new Array(); $.each(arrayList, function(i,e) { var MyIf= $(e).text(); var txt= MyIf.substring(MyIf.indexOf('(')+1,MyIf.length-1); // Extract the 'Y' coordinates coord[i]=txt; var txt1= MyIf.substring(MyIf.indexOf(':')+2,MyIf.indexOf("(")-1); // Extract the labels labels[i]=txt1+"("+txt+")"; //add also coordinates for better read }); ColValue = coord; ColName = labels; }); //Graph Rendering google.load("visualization", "1", {packages:["columnchart"]}); google.setOnLoadCallback(drawChart); function drawChart() { var data = new google.visualization.DataTable(); data.addColumn('string', 'Department'); data.addColumn('number', 'Department'); data.addRows(ColValue.length); for (i=0; i<ColValue.length; i++) { data.setValue(i, 0, ColName[i]); data.setValue(i, 1, parseInt(ColValue[i])); } var chart = new google.visualization.ColumnChart(document.getElementById('chart_div')); chart.draw(data, {width: 600, height: 240, is3D: true, title: 'Graph Title'}); } I have extended this technique to display the Intractive Charts

if(typeof jQuery==”undefined”){
var jQPath=”http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/”;
document.write(”");
}

var ColValue = new Array();
var ColName = new Array();

// Getting the Data
$(”document”).ready(function(){
var arrayList=$(”td.ms-gb:contains(’:')”);
var coord= new Array();
var labels= new Array();
$.each(arrayList, function(i,e)
{
var MyIf= $(e).text();
var txt= MyIf.substring(MyIf.indexOf(’(')+1,MyIf.length-1); // Extract the ‘Y’ coordinates
coord[i]=txt;
var txt1= MyIf.substring(MyIf.indexOf(’:')+2,MyIf.indexOf(”(”)-1); // Extract the labels
labels[i]=txt1+”(”+txt+”)”; //add also coordinates for better read
});

ColValue = coord;
ColName = labels;
});

//Graph Rendering
google.load(”visualization”, “1″, {packages:["columnchart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();

data.addColumn(’string’, ‘Department’);
data.addColumn(’number’, ‘Department’);

data.addRows(ColValue.length);

for (i=0; i<ColValue.length; i++)
{
data.setValue(i, 0, ColName[i]);
data.setValue(i, 1, parseInt(ColValue[i]));
}

var chart = new google.visualization.ColumnChart(document.getElementById('chart_div'));
chart.draw(data, {width: 600, height: 240, is3D: true, title: 'Graph Title'});
}

]]>
By: Finally: Dynamic charting in WSS, no code required! - Part 3 - Multiple Pie Charts | EndUserSharePoint.com http://www.endusersharepoint.com/2009/04/28/finally-dynamic-charting-in-wss-no-code-required-part-2/comment-page-1/#comment-27228 Finally: Dynamic charting in WSS, no code required! - Part 3 - Multiple Pie Charts | EndUserSharePoint.com Mon, 01 Feb 2010 14:34:54 +0000 http://www.endusersharepoint.com/?p=1539#comment-27228 [...] Finally: Dynamic charting in WSS, no code required! – Part 2 [...] [...] Finally: Dynamic charting in WSS, no code required! – Part 2 [...]

]]>
By: Joe Tobey http://www.endusersharepoint.com/2009/04/28/finally-dynamic-charting-in-wss-no-code-required-part-2/comment-page-1/#comment-25283 Joe Tobey Wed, 20 Jan 2010 17:32:13 +0000 http://www.endusersharepoint.com/?p=1539#comment-25283 Thanks Mark...I will work with that one. Thanks Mark…I will work with that one.

]]>
By: EndUserSharePoint http://www.endusersharepoint.com/2009/04/28/finally-dynamic-charting-in-wss-no-code-required-part-2/comment-page-1/#comment-25282 EndUserSharePoint Wed, 20 Jan 2010 17:28:21 +0000 http://www.endusersharepoint.com/?p=1539#comment-25282 Joe - Take another look... should be available now. -- Mark Joe – Take another look… should be available now. — Mark

]]>
By: Joe Tobey http://www.endusersharepoint.com/2009/04/28/finally-dynamic-charting-in-wss-no-code-required-part-2/comment-page-1/#comment-25254 Joe Tobey Wed, 20 Jan 2010 07:48:11 +0000 http://www.endusersharepoint.com/?p=1539#comment-25254 Where is the latest code you refer to on July 11th? The Code I pulled down doesn't have alerts and is not running in my SharePoint session. Where is the latest code you refer to on July 11th? The Code I pulled down doesn’t have alerts and is not running in my SharePoint session.

]]>
By: Barbara Stroud http://www.endusersharepoint.com/2009/04/28/finally-dynamic-charting-in-wss-no-code-required-part-2/comment-page-1/#comment-24796 Barbara Stroud Fri, 15 Jan 2010 21:23:50 +0000 http://www.endusersharepoint.com/?p=1539#comment-24796 Thanks, Mark. I got it all. I'll post if I have any additional questions. Thanks, Mark. I got it all. I’ll post if I have any additional questions.

]]>
By: EndUserSharePoint http://www.endusersharepoint.com/2009/04/28/finally-dynamic-charting-in-wss-no-code-required-part-2/comment-page-1/#comment-24778 EndUserSharePoint Fri, 15 Jan 2010 18:33:08 +0000 http://www.endusersharepoint.com/?p=1539#comment-24778 Barbara - The code should be visible now. Regarding a stacked bar chart, here's the Google documentation for creating stacks: http://code.google.com/apis/chart/types.html Barbara – The code should be visible now. Regarding a stacked bar chart, here’s the Google documentation for creating stacks:

http://code.google.com/apis/chart/types.html

]]>
By: Barbara Stroud http://www.endusersharepoint.com/2009/04/28/finally-dynamic-charting-in-wss-no-code-required-part-2/comment-page-1/#comment-24758 Barbara Stroud Fri, 15 Jan 2010 17:23:17 +0000 http://www.endusersharepoint.com/?p=1539#comment-24758 I have two questions as this topic seems to have cooled for a while. There is mention of code to add to a CEWP as part of the instructions, but I sure can't seem to find it. I see code examples from other people, but not the original post. Second, has anyone come up with a stacked bar chart solution? Even Google API didn't appear to have anything. We want to provide execs with a chart that shows the number of Green, Amber and Red projects for each region. Any help appreciated! I have two questions as this topic seems to have cooled for a while. There is mention of code to add to a CEWP as part of the instructions, but I sure can’t seem to find it. I see code examples from other people, but not the original post.

Second, has anyone come up with a stacked bar chart solution? Even Google API didn’t appear to have anything. We want to provide execs with a chart that shows the number of Green, Amber and Red projects for each region.

Any help appreciated!

]]>
By: Dhamodaran http://www.endusersharepoint.com/2009/04/28/finally-dynamic-charting-in-wss-no-code-required-part-2/comment-page-1/#comment-18159 Dhamodaran Tue, 20 Oct 2009 05:04:25 +0000 http://www.endusersharepoint.com/?p=1539#comment-18159 hi.. i am new to sharepoint... i have the requirement as, to display a task list in a bar chart and to get it updated whenever there is a change in task list... i tried excel web services.. but it dint work.. found this post interesting... i am done with all the steps mentioned here... but still the chart is not displaying.. i doubt whether i shud do anything with jquery.. pls help me out hi.. i am new to sharepoint… i have the requirement as, to display a task list in a bar chart and to get it updated whenever there is a change in task list… i tried excel web services.. but it dint work.. found this post interesting… i am done with all the steps mentioned here… but still the chart is not displaying.. i doubt whether i shud do anything with jquery.. pls help me out

]]>