<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Fremus.co.za &#187; Microsoft Chart Controls</title>
	<atom:link href="http://www.fremus.co.za/blog/tag/microsoft-chart-controls/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fremus.co.za/blog</link>
	<description>Demistifying Life and Web Development</description>
	<lastBuildDate>Sun, 27 Nov 2011 15:56:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>using System.Web.UI.DataVisualization.Charting;</title>
		<link>http://www.fremus.co.za/blog/2009/04/using-systemwebuidatavisualizationcharting/</link>
		<comments>http://www.fremus.co.za/blog/2009/04/using-systemwebuidatavisualizationcharting/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 15:04:50 +0000</pubDate>
		<dc:creator>fr3dr1k</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Microsoft Chart Controls]]></category>

		<guid isPermaLink="false">http://www.fremus.co.za/blog/?p=361</guid>
		<description><![CDATA[Ok so I recently got a request to do a project that uses all kinds of pretty charts, and initially the development team wanted to use Open Flash Charts, but the developer I was working with on the project was on leave for two days and in that time I decided to check out New [...]]]></description>
			<content:encoded><![CDATA[<p>Ok so I recently got a request to do a project that uses all kinds of pretty charts, and initially the development team wanted to use Open Flash Charts, but the developer I was working with on the project was on leave for two days and in that time I decided to check out <a href="http://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx" onclick="urchinTracker('/outgoing/weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx?referer=');">New ASP.NET Charting Control: <asp:chart runat="server"/></a>. First thing you need to do is <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c&#038;DisplayLang=en" onclick="urchinTracker('/outgoing/www.microsoft.com/downloads/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c_038_DisplayLang=en&amp;referer=');">download the free Microsoft Chart Controls</a> and install that on your machine. Note that once installed it creates a folder under <em>Program Files</em> called <em>Microsoft Chart Controls</em>, with another folder called <em>Assemblies</em> under that, which contains DLL&#8217;s for both web and application. Once you have installed Microsoft Chart Controls you can choose to add the <a href="http://www.microsoft.com/downloads/details.aspx?familyid=1D69CE13-E1E5-4315-825C-F14D33A303E9&#038;displaylang=en" onclick="urchinTracker('/outgoing/www.microsoft.com/downloads/details.aspx?familyid=1D69CE13-E1E5-4315-825C-F14D33A303E9_038_displaylang=en&amp;referer=');">VS 2008 add-on</a> if you are going to be doing web-forms development, but if like me you use a lot of web services and AJAX, you may not need it. So how do you get to use it then otherwise? By adding these two lines in your web.config file:</p>
<pre name="code" class="xml">
<add assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.DataVisualization.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</pre>
<p>You then have access to a range of classes by typing the fully qualified namespace like this:</p>
<pre name="code" class="csharp">
System.Web.UI.DataVisualization
</pre>
<p>Once you have access to the classes you can do all sorts of interesting things. You get to choose from 35 different chart types, that you can format with colours, 3D effects. And you can also use data with it very easily with a datareader, which impressed me. You can also save your charts as images.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save" onclick="urchinTracker('/outgoing/www.addtoany.com/share_save?referer=');"><img src="http://www.fremus.co.za/blog/wp-content/plugins/add-to-any/favicon.png" width="16" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.fremus.co.za/blog/2009/04/using-systemwebuidatavisualizationcharting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

