Comments on: Create Dynamic Bar and Pie Charts in WSS with any RSS feed: No code required http://www.endusersharepoint.com/2009/04/28/create-dynamic-bar-and-pie-charts-in-wss-with-any-rss-feed-no-code-required/ No GeekSpeak on SharePoint 2007 WSS and MOSS Mon, 27 Dec 2010 21:17:12 -0500 http://wordpress.org/?v=2.8.6 hourly 1 By: Pqt McDonnell http://www.endusersharepoint.com/2009/04/28/create-dynamic-bar-and-pie-charts-in-wss-with-any-rss-feed-no-code-required/comment-page-1/#comment-114290 Pqt McDonnell Mon, 29 Nov 2010 14:28:49 +0000 http://www.endusersharepoint.com/?p=1572#comment-114290 Hi, Ming: I am trying to get the RSS feed bar and pie charts to work in Sharepoint 2010. Though I had them working in Sharepoint 2007 some time ago, I can't get anything to show up on the charts when I try it now in Sharepoint 2010. Are there any differences or any updated code available. Thanks. Pat McDonnell Hi, Ming:

I am trying to get the RSS feed bar and pie charts to work in Sharepoint 2010. Though I had them working in Sharepoint 2007 some time ago, I can’t get anything to show up on the charts when I try it now in Sharepoint 2010. Are there any differences or any updated code available.

Thanks.

Pat McDonnell

]]>
By: EndUserSharePoint http://www.endusersharepoint.com/2009/04/28/create-dynamic-bar-and-pie-charts-in-wss-with-any-rss-feed-no-code-required/comment-page-1/#comment-44334 EndUserSharePoint Wed, 10 Mar 2010 22:24:56 +0000 http://www.endusersharepoint.com/?p=1572#comment-44334 I have updated Ron's comment with a marked up XSL snippet. In additions, Ron sent this extended comment: "This whole charting using the Goggle Chart API with RSS feeds in SharePoint I have been using extensively. I have found using SharePoint Designer that the RSS feeds from mutiple can be merged and applied to this charting application. "I even use this RSS feed merging discovery to create simple HTML tables that provide me better "Roll Up" web parts better than third party Roll Up applications (more flexible because I have the latitude to format the table per HTML parameters the way I want (I can add summations to the columns of the merged data, and in those that view the finished table in SharePoint, they can copy it to Word, PowerPoint where it maintains the table layout formatting information and they can modify the rows and columns to fit their document needs). "It has been quite the discovery process for me to realize just how much one can do with SharePoint RSS feeds." I have updated Ron’s comment with a marked up XSL snippet. In additions, Ron sent this extended comment:

“This whole charting using the Goggle Chart API with RSS feeds in SharePoint I have been using extensively. I have found using SharePoint Designer that the RSS feeds from mutiple can be merged and applied to this charting application.

“I even use this RSS feed merging discovery to create simple HTML tables that provide me better “Roll Up” web parts better than third party Roll Up applications (more flexible because I have the latitude to format the table per HTML parameters the way I want (I can add summations to the columns of the merged data, and in those that view the finished table in SharePoint, they can copy it to Word, PowerPoint where it maintains the table layout formatting information and they can modify the rows and columns to fit their document needs).

“It has been quite the discovery process for me to realize just how much one can do with SharePoint RSS feeds.”

]]>
By: Ron K http://www.endusersharepoint.com/2009/04/28/create-dynamic-bar-and-pie-charts-in-wss-with-any-rss-feed-no-code-required/comment-page-1/#comment-43855 Ron K Tue, 09 Mar 2010 20:31:47 +0000 http://www.endusersharepoint.com/?p=1572#comment-43855 For those that are having problems getting the chart to display data, I would first run a stylesheet script that dumps the raw RSS feed to make sure the data is being brought in to the SharePoint Web Part and is in the anticipated formate for the substring manipulation of the rest of the code. My initial problem was getting the SharePoint OS settigs correct to deliver the RSS feed, then the rest of the XSL stylesheet code that filters the entries should run as in the earlier examples. Below is a simple XSL script to to the RSS dump. Simple Item Dump [sourcecode lang="xml"] <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:exsl="http://exslt.org/common" extension-element-prefixes="exsl"> <xsl:output method="html"/> <xsl:template match="/"> <!-- <xsl:variable name="Rows" select="/dsQueryResponse/rss/channel/item"/> --><!-- location of merged RSS feed items --> <xsl:variable name="Rows" select="rss/channel/item"/> <!-- location of single RSS feed items --> <html> <body> <basefont size="2"/> <p> <textarea rows="32" cols="80"> <!-- Keep the web part size within reason --> <xsl:for-each select="$Rows"> <xsl:value-of select="."/> </xsl:for-each> </textarea> </p> </body> </html> </xsl:template> </xsl:stylesheet> [/sourcecode] Note, this will dump the whole RSS item, one after another. Ming's script works with the "description" field of the SharePoint's RSS which contains the column information (no entry IDs). If you want to use the IDs, don't use "description", use "." and the proper substring filtering to select the IDs. The dump from the script above will show the RSS item IDs. For those that are having problems getting the chart to display data, I would first run a stylesheet script that dumps the raw RSS feed to make sure the data is being brought in to the SharePoint Web Part and is in the anticipated formate for the substring manipulation of the rest of the code.

My initial problem was getting the SharePoint OS settigs correct to deliver the RSS feed, then the rest of the XSL stylesheet code that filters the entries should run as in the earlier examples. Below is a simple XSL script to to the RSS dump.

Simple Item Dump

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:exsl="http://exslt.org/common" extension-element-prefixes="exsl">
<xsl:output method="html"/>
	<xsl:template match="/">
<!-- <xsl:variable name="Rows" select="/dsQueryResponse/rss/channel/item"/> --><!-- location of merged RSS feed items -->
<xsl:variable name="Rows" select="rss/channel/item"/> <!-- location of single RSS feed items -->
<html>
      <body>
        <basefont size="2"/>
<p>
          <textarea rows="32" cols="80"> <!-- Keep the web part size within reason -->
          <xsl:for-each select="$Rows">&#13;
<xsl:value-of select="."/>
</xsl:for-each>
</textarea>
</p>
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>

Note, this will dump the whole RSS item, one after another. Ming’s script works with the “description” field of the SharePoint’s RSS which contains the column information (no entry IDs). If you want to use the IDs, don’t use “description”, use “.” and the proper substring filtering to select the IDs. The dump from the script above will show the RSS item IDs.

]]>
By: Ming http://www.endusersharepoint.com/2009/04/28/create-dynamic-bar-and-pie-charts-in-wss-with-any-rss-feed-no-code-required/comment-page-1/#comment-43734 Ming Tue, 09 Mar 2010 05:30:46 +0000 http://www.endusersharepoint.com/?p=1572#comment-43734 Do you mean there is no bar graphs? Does your RSS feed has the data? Do you mean there is no bar graphs? Does your RSS feed has the data?

]]>
By: vinit mehta http://www.endusersharepoint.com/2009/04/28/create-dynamic-bar-and-pie-charts-in-wss-with-any-rss-feed-no-code-required/comment-page-1/#comment-43376 vinit mehta Mon, 08 Mar 2010 23:40:28 +0000 http://www.endusersharepoint.com/?p=1572#comment-43376 Hi, i looke at your article and i wanna replicate the same thing on our sharepoint site. i am following the above instructions but only the axis is being shown , no data is shown in the web part. can you please help!!!! thanks. Hi,

i looke at your article and i wanna replicate the same thing on our sharepoint site.

i am following the above instructions but only the axis is being shown , no data is shown in the web part.

can you please help!!!!

thanks.

]]>
By: Sean http://www.endusersharepoint.com/2009/04/28/create-dynamic-bar-and-pie-charts-in-wss-with-any-rss-feed-no-code-required/comment-page-1/#comment-31258 Sean Thu, 11 Feb 2010 01:27:22 +0000 http://www.endusersharepoint.com/?p=1572#comment-31258 Ming- I replicated your list with the four columns (Month, Actuals, Budgets, ID_Order) from Jan through Apr and with associated ID_Order values of 1 through 4. I made the RSS settings tweaks. I created the xsl document without updates. I created the content editor webpart with your code and updated the pointer to the RSS feed and the pointer to the xsl document. The list, webpart page, and xsl file are all in the same site. I receive the following error when loading the webpart page in IE. Any advice to resolve the error? Message: The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document. Line: 1039 Char: 3 Code: 0 Thank you, Sean Ming-

I replicated your list with the four columns (Month, Actuals, Budgets, ID_Order) from Jan through Apr and with associated ID_Order values of 1 through 4. I made the RSS settings tweaks. I created the xsl document without updates. I created the content editor webpart with your code and updated the pointer to the RSS feed and the pointer to the xsl document. The list, webpart page, and xsl file are all in the same site. I receive the following error when loading the webpart page in IE. Any advice to resolve the error?

Message: The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document.

Line: 1039
Char: 3
Code: 0

Thank you,
Sean

]]>
By: EndUserSharePoint http://www.endusersharepoint.com/2009/04/28/create-dynamic-bar-and-pie-charts-in-wss-with-any-rss-feed-no-code-required/comment-page-1/#comment-26468 EndUserSharePoint Fri, 29 Jan 2010 17:31:44 +0000 http://www.endusersharepoint.com/?p=1572#comment-26468 Thanks Ming. The article is updated with the code samples. -- Mark Thanks Ming. The article is updated with the code samples. — Mark

]]>
By: EndUserSharePoint http://www.endusersharepoint.com/2009/04/28/create-dynamic-bar-and-pie-charts-in-wss-with-any-rss-feed-no-code-required/comment-page-1/#comment-26340 EndUserSharePoint Thu, 28 Jan 2010 20:54:42 +0000 http://www.endusersharepoint.com/?p=1572#comment-26340 The code in the article got completely wiped out. Ming, if you're watching, please send me a new copy. Thanks. -- Mark The code in the article got completely wiped out. Ming, if you’re watching, please send me a new copy. Thanks. — Mark

]]>
By: Jerad http://www.endusersharepoint.com/2009/04/28/create-dynamic-bar-and-pie-charts-in-wss-with-any-rss-feed-no-code-required/comment-page-1/#comment-26335 Jerad Thu, 28 Jan 2010 20:22:11 +0000 http://www.endusersharepoint.com/?p=1572#comment-26335 Could you please reload the javascript for this article. I love this site it has really helped me out. Thanks, Jerad Could you please reload the javascript for this article. I love this site it has really helped me out.

Thanks,
Jerad

]]>
By: SharePoint Authenticated Access Work-Around : EndUserSharePoint.com http://www.endusersharepoint.com/2009/04/28/create-dynamic-bar-and-pie-charts-in-wss-with-any-rss-feed-no-code-required/comment-page-1/#comment-20330 SharePoint Authenticated Access Work-Around : EndUserSharePoint.com Thu, 10 Dec 2009 15:57:43 +0000 http://www.endusersharepoint.com/?p=1572#comment-20330 [...] note from Mark Miller: This is a response to an article that Ming Fung Yong wrote on creating graphs from a SharePoint RSS feed. One of the problems with the RSS reader web part is that it can’t consume authenticated [...] [...] note from Mark Miller: This is a response to an article that Ming Fung Yong wrote on creating graphs from a SharePoint RSS feed. One of the problems with the RSS reader web part is that it can’t consume authenticated [...]

]]>