<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.dotnetmafia.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Corey Roth [MVP] : WebPart, Business Connectivity Services, SharePoint, SharePoint 2010</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/WebPart/Business+Connectivity+Services/SharePoint/SharePoint+2010/default.aspx</link><description>Tags: WebPart, Business Connectivity Services, SharePoint, SharePoint 2010</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>Impress the Boss with the SharePoint 2010 Chart Web Part</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/02/24/impress-the-boss-with-the-sharepoint-2010-chart-web-part.aspx</link><pubDate>Wed, 24 Feb 2010 17:09:12 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:2811</guid><dc:creator>CoreyRoth</dc:creator><slash:comments>56</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.dotnetmafia.com/blogs/dotnettipoftheday/rsscomments.aspx?PostID=2811</wfw:commentRss><comments>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/02/24/impress-the-boss-with-the-sharepoint-2010-chart-web-part.aspx#comments</comments><description>&lt;p&gt;Let’s face it.&amp;#160; Nowadays, management absolutely loves BI.&amp;#160; Especially when there are lots of pretty charts and graphs.&amp;#160; The thing is I’m not a BI guy.&amp;#160; Cubes scare me to death.&amp;#160; Luckily, there is the new snazzy Chart Web Part in SharePoint 2010 that gives you some BI like capabilities.&amp;#160; It doesn’t allow you to drill down and pivot and do all that fancy stuff, but it does let you make some nice graphs and charts that any ordinary developer can do.&lt;/p&gt;  &lt;p&gt;To get started, first you need an Enterprise version of SharePoint 2010.&amp;#160; Unfortunately, I used the key that was later determined to be the wrong one which led me to reinstall SharePoint with a new key.&amp;#160; If you don’t have any Enterprise options available, then you will be reinstalling.&amp;#160; Assuming, you do have an Enterprise key, you then need to activate the &lt;em&gt;SharePoint Server Enterprise Site Collection Features&lt;/em&gt;.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartFeature_3EA95F0B.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartFeature" border="0" alt="ChartWebPartFeature" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartFeature_thumb_5DEC05DE.png" width="563" height="43" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;This adds the chart web part (among other things).&amp;#160; Then edit any page and add a Chart Web Part.&amp;#160; You can find it under Miscellaneous as of Beta 2 (they may have found it a new home in later versions).&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartAdd_5D7FD2E9.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartAdd" border="0" alt="ChartWebPartAdd" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartAdd_thumb_2EBA1A47.png" width="429" height="216" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;When you add it to the page, it uses some dummy data and displays a simple bar chart.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartDefault_272EAADA.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartDefault" border="0" alt="ChartWebPartDefault" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartDefault_thumb_74CAD75A.png" width="282" height="270" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;At this point, you might be asking yourself “What kind of data can I bind this to?”.&amp;#160; By clicking &lt;em&gt;Data &amp;amp; Appearance, &lt;/em&gt;you will see the following screen which leads you to links to customize the appearance or bind to data.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartDataAndAppearance_426703DB.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartDataAndAppearance" border="0" alt="ChartWebPartDataAndAppearance" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartDataAndAppearance_thumb_1AC087B1.png" width="419" height="210" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;We’ll start by going to &lt;em&gt;Connect Chat To Data&lt;/em&gt;.&amp;#160; Look at these great options we have to choose from.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartDataSources_4C4BF546.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartDataSources" border="0" alt="ChartWebPartDataSources" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartDataSources_thumb_24A5791C.png" width="495" height="309" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;We can connect to another web part, a list, an external content type (looks like they need to update the BDC wording they have there), and to Excel Services.&amp;#160; I tried going straight to an external content type, but I got a yellow screen.&amp;#160; Apparently that is broken on my version, but I’m sure it will work in RTM.&amp;#160; There is a work around though.&amp;#160; You can pick an external list using the &lt;em&gt;Connect to a List&lt;/em&gt; option.&amp;#160; This is exactly what I am going to do.&lt;/p&gt;  &lt;p&gt;Remember that external list I created on my &lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/02/02/it-s-easy-to-configure-an-external-list-with-business-connectivity-services-bcs-in-sharepoint-foundation-2010.aspx"&gt;BCS&lt;/a&gt; blog post?&amp;#160; I’m going to use that list and extend it some.&amp;#160; What I did is I created a new custom list to contain Monthly Sales information.&amp;#160; I used an External Data field to allow the user to pick a product from the external content type and enter in some sales data in a field.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartList_320B8C22.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartList" border="0" alt="ChartWebPartList" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartList_thumb_7FA7B8A2.png" width="326" height="98" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;This is the list we are going to use on our chart.&amp;#160; On the next step of the wizard, we are allowed to pick a list.&amp;#160; Note that it also allows you to choose other sites in the collection as well.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartListDataSource_385262B0.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartListDataSource" border="0" alt="ChartWebPartListDataSource" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartListDataSource_thumb_430FBA05.png" width="359" height="161" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;The next step allows you to filter your data first if you are so inclined.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartWizardFilterData_57950983.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartWizardFilterData" border="0" alt="ChartWebPartWizardFilterData" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartWizardFilterData_thumb_293B83D6.png" width="411" height="260" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;The Chart Web Part has a ton of configurable options.&amp;#160; On this last step is where you will start seeing some of them.&amp;#160; The main thing to set here is your X and Y fields.&amp;#160; You can also specify something to group by as well.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartWizardBindData_4F9D6721.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartWizardBindData" border="0" alt="ChartWebPartWizardBindData" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartWizardBindData_thumb_4F31342C.png" width="463" height="295" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Once you finish this last step, you’ll get something that looks like this.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartWithData_15AE2435.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartWithData" border="0" alt="ChartWebPartWithData" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartWithData_thumb_00506ECD.png" width="322" height="326" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;So, what we have here is a chart bound to data coming from a database (via external content type) and a SharePoint list.&amp;#160; Pretty cool, right?&amp;#160; I think so.&amp;#160; It gets better though.&amp;#160; What if your boss doesn’t like bar charts?&amp;#160; No problem.&amp;#160; There are tons of chart types to choose from.&amp;#160; Just click on &lt;em&gt;Data &amp;amp; Appearance&lt;/em&gt; again and then &lt;em&gt;Customize Your Chart&lt;/em&gt;.&amp;#160; Look at all of these built in chart types you have.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartOptionsPie_2DD18E90.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartOptionsPie" border="0" alt="ChartWebPartOptionsPie" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartOptionsPie_thumb_7B01881B.png" width="391" height="225" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartOptionsBar_737618AE.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartOptionsBar" border="0" alt="ChartWebPartOptionsBar" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartOptionsBar_thumb_12B8BF82.png" width="385" height="193" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;On the next step, you can further customize the chart you choose.&amp;#160; It has some nice pre-built color themes and you can customize the size and what not.&amp;#160; It also gives you a live preview as you change settings.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartOptionsPie2_5D3FFD5C.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartOptionsPie2" border="0" alt="ChartWebPartOptionsPie2" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartOptionsPie2_thumb_7C82A42F.png" width="427" height="204" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Here is what my new chart looks like.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartPie_22E4877B.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ChartWebPartPie" border="0" alt="ChartWebPartPie" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/ChartWebPartPie_thumb_22785486.png" width="244" height="218" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;You can customize things even more by going to Advanced Properties.&amp;#160; It would probably take me a week to show you everything that this web part does, so I recommend you go try it out for yourself.&amp;#160; The charts and graphs this thing produces are so cool, you should have no issue getting your boss to sign off on the Enterprise license. :)&lt;/p&gt;&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=2811" width="1" height="1"&gt;</description><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/WebPart/default.aspx">WebPart</category><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/Business+Connectivity+Services/default.aspx">Business Connectivity Services</category><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/SharePoint+2010/default.aspx">SharePoint 2010</category><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/SP2010+Beta/default.aspx">SP2010 Beta</category></item></channel></rss>