MSDN Archive Home
Help and FAQs
Samples Environment for Microsoft Chart Controls
All Resource Updates
Change History (all pages)
Resource Page Description
The samples environment for Microsoft Chart Controls for .NET Framework contains over 200 samples for both ASP.NET and Windows Forms. The samples cover every major feature in Chart Controls for .NET Framework. They enable you to see the Chart controls in action as well as use the code as templates for your own web and windows applications.
**Delete the following note before publishing **
This resource page is currently in setup mode and only available to coordinators and developers. Once you have finished setting up your resource page you can publish it to make it available to all MSDN Code Gallery visitors.
To get your Resource Page ready to publish, you should do the following:
Make any changes to the details of your resource page
Here you can enable or disable functions of your resource page. You might want to turn on the Issue Tracker to allow users to provide feedback on your resource, or if you have a resource that does not involve a code sample, you may want to turn off the Releases tab.
Make sure your resource page description is detailed enough to let people search for your resource.
Add your code sample or other resources to the resource page
If you’re uploading code, go to the Releases tab and create a new release to house your code. Creating a release allows you to have the license properly displayed when people download your code, as well as provides a download count.
Edit your Wiki page to attach any resources you may have that are not source code.
If you want to let someone see your resource page before it is published, go to the People tab and add them to your resource page
This will let you add other team members who may be contributing to your resource, or just show it off and get feedback from someone you trust.
Tag your resource page with descriptive tags to make it easier for people to find your resources when browsing the gallery.
Publish your resource page so it becomes visible to everyone!
Additional information on starting a new resource page is available here:
Resource Page Startup Guide
Sep 23 2008 at 1:35 AM
, version 1
Nov 26 2008 at 5:35 PM
Thank you so much, its rocks !!
Hello from France ;)
Dec 2 2008 at 6:54 PM
This is awesome! Is there a version of these samples in Visual Basic?
Dec 2 2008 at 9:40 PM
Nevermind. I found the Visual Basic code in the samples on a separate tab. Thanks!
Dec 3 2008 at 1:41 AM
Is there an online version of the samples?
Dec 5 2008 at 8:07 PM
Man, I am just flattened by the most impressive examples of charting controls that you put out. WOW!
Any chance you could do a Radial Chart control. Like in a CAR speedometer?
Dec 8 2008 at 7:08 PM
Gauges is another visualization our team would like to add. We do not have the exact time line when this is going to happen.
Dec 10 2008 at 5:29 PM
The entire api look almost the same as dundas charts, what's the deal with that?
Dec 10 2008 at 5:41 PM
I am feeleing very dense. I can not find the VB code in the Samples as bypan6 evidently did. Can you tell me where?
Dec 10 2008 at 7:34 PM
Dundas Visualization IP was acquired by Microsoft. Check out this post: http://blogs.msdn.com/alexgor/archive/2008/11/07/microsoft-chart-control-vs-dundas-chart-control.aspx
Dec 11 2008 at 1:57 AM
That explains alot, thank's Alex :)
Dec 13 2008 at 3:58 AM
This is simply wonderful! thanks
Jan 9 2009 at 11:15 AM
This is wonderful! thanks
Jan 14 2009 at 3:34 PM
Jan 18 2009 at 1:24 PM
Es ist unglaublich, was mann mit der .Net Technologie alles mögliche machen kann. Mann haette sich das in vor Jahren wirklich nicht denken können, dass mann soweit kommen könnte.
Jan 23 2009 at 9:23 PM
So I pulled up the VB source for one of the examples and gave it a try. No errors and no chart. How about a meaningful how to get started and work with the charts document instead of the vague and worthless garbage provided? An actual tutorial would be nice and maybe something covering common errors and issues and how to solve them.
Jan 25 2009 at 5:55 PM
You can find a getting started tutorial right here: http://weblogs.asp.net/dwahlin/archive/2008/11/25/getting-started-with-the-asp-net-3-5-chart-control.aspx.
Feb 10 2009 at 12:35 AM
That's great! I don't need any third party chart control any more!
Feb 16 2009 at 5:21 AM
Can I use these assemblies in VS 2003? Or is there a .NET 1.1 version compatible MS Chart available?
Feb 16 2009 at 8:07 AM
MS Chart only supported for .NET Framework 3.5 SP1
Feb 17 2009 at 8:50 PM
Alex ... how do I create tooltips that display the charted values when you hover over a column or bar? The included sample code is useless, it just shows how to display the data point index, but not the actual data values. Thanks.
Feb 18 2009 at 2:55 AM
Please post all chart related questions on the dedicated forum: http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/threads/
Feb 19 2009 at 9:30 AM
Wow, this is incredible!! -Big thanks!
Feb 26 2009 at 11:24 AM
very interesting, hello brazil !!!
Mar 23 2009 at 10:17 AM
Excellent work !!
Apr 1 2009 at 7:31 PM
You don't support Scroll,
Regarding Financial Chart it is worst. We have to do all work for it. ChartFX7 was better than u. It was mistake from my superior to move to Microsoft chart Contol. Plz work to improve on chart.
Apr 12 2009 at 11:16 AM
Hi. Will this control work on a shared hosting server without access to the GAC? i.e. Will I be able to simply add the .dll to my web application's bin directory for it to work?
Apr 14 2009 at 4:16 PM
Hello from Pakistan
Apr 23 2009 at 4:40 PM
Hi VineetNair, the Windows Forms version of the Chart control supports scrolling and zooming. Please try it out in the Windows Forms samples.
May 11 2009 at 12:29 PM
hi, I am using MS Chart Control for .Net Framework 3.5. in VS 2005. I want to add the functionality to show or hide the series by using Datagridview Checkbox. Any help will be Appreciated.
May 12 2009 at 12:05 PM
Great Job you guys! This is the best so far!
Jun 11 2009 at 10:05 AM
Where is Gantt chart?
Jun 19 2009 at 4:57 AM
You can use RangeBar chart type to create some basic Gantt charts.
Jun 23 2009 at 2:14 PM
very interesting, hello Korea !!!
Jun 25 2009 at 3:03 PM
I think there is a bug on the temp directory that stores the files.
Setup: ASP.NET 3.5 application running on IIS 7 and Windows Server 2008.
You need to add rights to asp.net worker with modify/write access to the folder, then on web.config you need to set the key with a absolute path.
<add key="ChartImageHandler" value="storage=file;timeout=20;dir=%DRIVE%:\inetpub\wwwroot\%APPLICATION%\TempImages\;" />
this is the only way you can deploy it on a server.
Relative paths like ~ or ./xxxxxxx/ is not working
Jul 3 2009 at 3:29 PM
Does anybody know how to make the plotted area transparent rather than white. The examples provided show that you need to change the Backcolor to transparent, but Backcolor in reality only changes the far background color, not the plotted background color. Thanks,
Jul 6 2009 at 9:56 AM
Download of the Win Forms example is missing Resource.resx, hundreds of errors attempting to compile. Maybe I'm missing something...
Jul 14 2009 at 10:29 AM
I'm trying to create a semi-log chart (y is linear, x is log). Are there any samples out there that someone can direct me to?
Jul 19 2009 at 8:22 PM
The Download with the Free Download Manager is impossible cause you will get only the Download .ASPX. Say CANCEL to the download Manager to get the ZIP File.
Aug 2 2009 at 5:08 AM
@bjmc: set the background color of the chart area to a (semi-)transparent color. Like this:
chart.BackColor = Color.FromArgb(0xd3, 0xdf, 0xf0);
chart.BackSecondaryColor = Color.White;
chart.BackGradientStyle = GradientStyle.TopBottom;
ChartArea ca = new ChartArea("main");
ca.BackColor = System.Drawing.Color.FromArgb(64, System.Drawing.Color.White);
Sep 9 2009 at 1:20 PM
Can one use the control in a NET 2.0 application, with .NET Framework 3.5 installed?
Oct 15 2009 at 5:20 AM
what an awesome component !!!
I try to find component like this.
It looks very useful for my project !!
Oct 16 2009 at 6:24 PM
To use charts do I need NET Framework 3.5 installed on both my remote VS2005 machine, and hosting server? If must be installed on server is NET Framework 3.5 compatible with Sever 2003?
Oct 19 2009 at 8:45 PM
newbie question: I have downloaded the chart samples solution, installed the control and the VS plugin. Howveer, on compiling it I get (31 errors) of " the type or namespace chart is missing. I added the reference to "System.Web.DataVisualization.dll". however the errors continues to occur. I am sure it is something simple, but I am unable to figure out. Please help!
Nov 6 2009 at 11:55 PM
should ask quests on forums not comments. try forums.asp.net
Nov 8 2009 at 9:06 PM
Ludicrous. If this is not too small of a subset of Dundas' Chart, then how dare they ask the prices they do?
Look at what is dubbed 3D. Pardon me? I had thought of MATLAB.
Where are treemaps? Boo. Have Tufte give you a lecture.
Nov 17 2009 at 11:46 AM
It was really helpful while working with charts Thank You very much.
Nov 26 2009 at 5:01 PM
I'm glad that I found this control. I downloaded the chart control without the examples, and I already added it to some of the reports in the application that I just built. The control has a much better look than the old VB 6 chart control, and it is much easier to use.
Dec 1 2009 at 5:55 AM
Can I create Gannt Chart like this.. in MSCharts.
Where Type 1 is having 5 persons
and Thpe 2 are having 5 persons.
Can I show the Data in this Similar Fachion using MS Charts.. ?
Type 1 |4 [.........]
Type 2 |2
Dec 18 2009 at 1:06 PM
I have added custom items to my legend area so i need to set the color for each. The line series colors are generated as the chart is being loaded. Is there a way to find the color of each series so I can set my legend color to match it?
Jan 17 2010 at 1:11 PM
The controls realy nice but the Right to Left property is not working well with the text it makes align to the right only, for the right to left languages like arabic it's not starting from right to left
Jan 25 2010 at 2:44 PM
I wrote an article about how I integrate the reporting controls in a ASP.NET MVC application on my blog: http://www.codecapers.com/post/Build-a-Dashboard-With-Microsoft-Chart-Controls.aspx
Feb 22 2010 at 12:07 AM
This chart is awesome!
Feb 25 2010 at 3:30 PM
Problem adding Chart Controls to Visual Studio toolbox (resolved, may help someone with similar issue)
I installed Chart Control, then added a reference in VS (System.Windows.Forms.DataVisualization.dll),
then installed the Add-on file. Although I then ticked the dll in rightclick Toolbox/Choose Items/ menu,
it was not showing in the Toolbox.
Took ages to figure it out. What I had to do was untick the dll, close VS, reinstalled the two dll's (Forms and Web),
reinstall the Add-on EXE, tick both the dll's in Choose Items, and then it worked.
Apr 16 2010 at 4:07 AM
Hi . I have one...
Problem when I published and up Load on IIS5 On Windowns XP Prosfessional for test befor to upload My server
that have Error and I find Problem in search engine and I make that . My problem not sol....
Apr 26 2010 at 6:49 PM
Thanks for the perfect examples, they are worth of thousand words..
May 4 2010 at 11:10 AM
I agree with spoiledtechie. Gauges should be on the list of "Things To Do"
May 30 2010 at 10:33 PM
I was waiting for this Release. Thank you guys!
Jun 1 2010 at 1:36 PM
We are using the Microsoft charts controls for the windows application and are having trouble with displaying tooltip on the edge of the X and Y axis. I have set the Tooltip property = true for the series. I displays the tooltip on the series but it does not display the tooltip on the edge of X and Y axis. Can anyone of you please respond to this problem and let me know whether is a bug in microsoft chart control or it is possible to accomplish this? If yes, then how?
Jun 23 2010 at 8:40 AM
Jul 19 2010 at 6:58 AM
Aug 26 2010 at 11:35 AM
I was wondering how/whether it is possible to export the chart in to vector format suitable for PDF's??
Sep 10 2010 at 6:07 PM
For those who are wondering about VB source code. It is not so obvious. You have to open the Windows Forms Samples from the Downloads on this webpage. Open up the C# project file in C#. and there are VB and C# source codes for each of the examples.
Oct 6 2010 at 5:23 AM
How do you set the axis labels if you're not using DataBinding? Could anyone tell me? Thanks.
Nov 3 2010 at 3:41 AM
the Encoding of Winform sample's Source Error!
Error 2 ; expected F:\samples\NetChartAll\WinSamples\WorkingWithData\DataBinding\DatabaseBindingY\DatabaseBindingY.cs 216 64 WinFormsChartSamples
Nov 23 2010 at 3:44 PM
Does it support WPF?
Jun 21 2011 at 4:41 AM
Long Live Pakistan
Jul 1 2011 at 7:09 AM
not including scrolling in the web.ui version is a grave disappointment for those of use acccustomed to the Dundas predecessor. Based on what Microsoft has been delivering, I expected more from this web.ui version of the chart.
Sep 3 2011 at 3:30 PM
This tool is awsome! Who ever put this together has my vote for a big fat raise.
We should see more like this from Microsoft.
Dec 21 2011 at 4:38 AM
hi..can you do these same examples but in silverlight?..there's not so much examples..please
Feb 6 2012 at 1:31 PM
Very helpful, thanks!
Mar 14 2012 at 4:26 AM
Apr 3 2012 at 6:42 PM
Tried rebuilding WinFormsChartSamples.exe under VS 2010 Professional SP1 with the Release option and copying just the exe to a machine with only the runtime Microsoft.Net 4.0 installed. When I try running the exe I get WinFormsChartSamples has encountered a problem and needs to close. System.IO.FileNotFoundException. If I copy the complete project folder, the application works. Is there a build component the chart application exe requires?
Apr 6 2012 at 4:29 PM
Thanks a ton for this lovely piece of Intelligence, Hope I would come up someday with something & contribute to this world.....:)
Jul 18 2012 at 2:36 PM
Is it possible to make one or more series TRANSPARENT, in a radar chart ?
Jul 22 2012 at 2:22 PM
remove ToUpper from path definitons if your keyboard is TR otherwise you encounter errors
Sep 7 2012 at 3:02 PM
Can charts regenerate a gif picture ,just like flash?
Nov 7 2012 at 3:51 PM
Amazing tool, never seen anything quite like this. It's a delight to work with.
Dec 15 2012 at 2:17 PM
very very nice service
Aug 1 2013 at 8:42 AM
Its worth noting here that there are a couple of issues in the code. Some paths are generated by adding "\\" to a string to separate directories. This is unfortunately not recommended as it is non-portable. A good example to set would be to use Path.Combine() instead. The offending code is line 570 and 625 of MainForm.cs.
Dec 2 2013 at 7:43 AM
Dec 2 2013 at 7:44 AM
wo qu,bu neng ping lun zhong wen!!!qiu zhong wen wen dang!!!
Dec 19 2013 at 1:41 PM
For Next Generation .net charting with Direct2D, Direct3D, Directx11 with automatic fallback to Gdi or GdiPlus, and improved artificial intelligence/rendering quality when sizing, shaping, exporting etc, include Gigasoft ProEssentials in your search results. There's a 7 meg demo download that includes 3 Exes in WinForm, Wpf, and Native C++ variations for comparison. The demo quickly demonstrates overall robustness of features, rendering quality, and ease of code. Definitely worth a look if spending many hours adding charting functionality to your project.
Sign in to add a comment
Samples for Chart Cont...
Wed May 26 2010 at 7:00 AM
More Tags ...
Visual Studio 2005
Visual Studio 2008
Visual Studio 2010
Manage Your Profile
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.