{"id":1005,"date":"2010-03-29T16:48:04","date_gmt":"2010-03-29T15:48:04","guid":{"rendered":"http:\/\/www.galhano.com\/blog\/?p=1005"},"modified":"2010-03-29T16:49:13","modified_gmt":"2010-03-29T15:49:13","slug":"aspnet-charting-control","status":"publish","type":"post","link":"http:\/\/galhano.com\/blog\/?p=1005","title":{"rendered":"ASP.NET Charting Control"},"content":{"rendered":"<p>Scott Gu <a href=\"http:\/\/go2.wordpress.com\/?id=725X1342&amp;site=jamesewelch.wordpress.com&amp;url=http%3A%2F%2Fweblogs.asp.net%2Fscottgu%2Farchive%2F2008%2F11%2F24%2Fnew-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx&amp;sref=http%3A%2F%2Fjamesewelch.wordpress.com%2Fcategory%2Ftechnology%2Fprogramming%2Fnet%2F\" target=\"_blank\">blogged<\/a> about the the <a href=\"http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c&amp;DisplayLang=en\" target=\"_blank\">free Microsoft Chart Controls for Microsoft .NET 3.5<\/a>.<\/p>\n<p><span style=\"font-family: arial; font-size: x-small;\">Microsoft recently released a cool new  ASP.NET server control &#8211; &lt;asp:chart \/&gt; &#8211; that can be used for free  with ASP.NET 3.5 to enable rich browser-based charting scenarios:<\/span><\/p>\n<ul>\n<li><a href=\"http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c&amp;DisplayLang=en\" target=\"_blank\">Download  the free Microsoft Chart Controls<\/a><\/li>\n<li><a href=\"http:\/\/www.microsoft.com\/downloads\/details.aspx?familyid=1D69CE13-E1E5-4315-825C-F14D33A303E9&amp;displaylang=en\" target=\"_blank\">Download  the VS 2008 Tool Support for the Chart Controls<\/a><\/li>\n<li><a href=\"http:\/\/code.msdn.microsoft.com\/mschart\/Release\/ProjectReleases.aspx?ReleaseId=1591\" target=\"_blank\">Download  the Microsoft Chart Controls Samples<\/a><\/li>\n<li><a href=\"http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyId=EE8F6F35-B087-4324-9DBA-6DD5E844FD9F&amp;displaylang=en\" target=\"_blank\">Download  the Microsoft Chart Controls Documentation<\/a><\/li>\n<li><a href=\"http:\/\/social.msdn.microsoft.com\/Forums\/en-US\/MSWinWebChart\/threads\/\" target=\"_blank\">Visit  the Microsoft Chart Control Forum<\/a><\/li>\n<\/ul>\n<p>Once  installed the &lt;asp:chart\/&gt; control shows up under the &#8220;Data&#8221; tab  on the Toolbox, and can be easily declared on any ASP.NET page as a  standard server control:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.scottgu.com\/blogposts\/chart\/step0.png\" alt=\"\" \/><\/p>\n<p><span><!--more--><\/span><\/p>\n<p>&lt;asp:chart  \/&gt; supports a rich assortment of chart options &#8211; including pie,  area, range, point, circular, accumulation, data distribution, ajax  interactive, doughnut, and more.  You can statically declare chart data  within the control declaration, or alternatively use data-binding to  populate it dynamically.  At runtime the server control generates an  image (for example a .PNG file) that is referenced from the client HTML  of the page using a &lt;img\/&gt; element output by the  &lt;asp:chart\/&gt; control.  The server control supports the ability to  cache the chart image, as well as save it on disk for persistent  scenarios.  It does not require any other server software to be  installed, and will work with any standard ASP.NET page.<\/p>\n<p>To  get a sense of how to use the &lt;asp:chart \/&gt; control I recommend <a href=\"http:\/\/code.msdn.microsoft.com\/mschart\/Release\/ProjectReleases.aspx?ReleaseId=1591\" target=\"_blank\">downloading  the Microsoft Chart Controls Sample Project<\/a>.  This includes over  200 ASP.NET sample pages that you can run locally.  Just open the web  project in VS 2008 and hit run to see them in action &#8211; you can then open  the .aspx source of each to see how they are implemented.<\/p>\n<p><span><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/www.scottgu.com\/blogposts\/chart\/step2.png\" alt=\"\" width=\"597\" height=\"472\" \/><\/span><\/p>\n<h3>Resources<\/h3>\n<ul>\n<li><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\" target=\"_blank\">New ASP.NET Charting Control: &lt;asp:chart  runat=\u201dserver\u201d\/&gt;<\/a> (Scott Gu)<\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/alexgor\/archive\/2008\/11\/07\/microsoft-chart-control-vs-dundas-chart-control.aspx\" target=\"_blank\">Microsoft Chart Control vs. Dundas Chart Control<\/a> (Alex Gorev)<\/li>\n<li><a href=\"http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c&amp;DisplayLang=en\" target=\"_blank\">Download the free Microsoft Chart Controls<\/a> (Microsoft)<\/li>\n<li><a href=\"http:\/\/www.microsoft.com\/downloads\/details.aspx?familyid=1D69CE13-E1E5-4315-825C-F14D33A303E9&amp;displaylang=en\" target=\"_blank\">Download the VS 2008 Tool Support for the Chart  Controls<\/a> (Microsoft)<\/li>\n<li><a href=\"http:\/\/code.msdn.microsoft.com\/mschart\/Release\/ProjectReleases.aspx?ReleaseId=1591\" target=\"_blank\">Download the Microsoft Chart Controls Samples<\/a> (MSDN)<\/li>\n<li><a href=\"http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyId=EE8F6F35-B087-4324-9DBA-6DD5E844FD9F&amp;displaylang=en\" target=\"_blank\">Download the Microsoft Chart Controls Documentation<\/a> (Microsoft)<\/li>\n<li><a href=\"http:\/\/social.msdn.microsoft.com\/Forums\/en-US\/MSWinWebChart\/threads\/\" target=\"_blank\">Visit the Microsoft Chart Control Forum<\/a> (MSDN)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Scott Gu blogged about the the free Microsoft Chart Controls for Microsoft .NET 3.5. Microsoft recently released a cool new ASP.NET server control &#8211; &lt;asp:chart \/&gt; &#8211; that can be used for free with ASP.NET 3.5 to enable rich browser-based charting scenarios: Download the free Microsoft Chart Controls Download the VS 2008 Tool Support for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"close","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43,4,22],"tags":[],"class_list":["post-1005","post","type-post","status-publish","format-standard","hentry","category-netfx","category-aspnet","category-microsoft","author-admin"],"_links":{"self":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1005"}],"version-history":[{"count":3,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1005\/revisions"}],"predecessor-version":[{"id":1007,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1005\/revisions\/1007"}],"wp:attachment":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1005"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}