![]() |
Platforms, Frameworks & Libraries »
.NET Framework »
General
Advanced
License: The Code Project Open License (CPOL)
New Microsoft Chart Controls for Web and Windows Forms ApplicationsBy Cirilo MeggiolaroMicrosoft has just launched a very rich chart control for .NET web and windows forms applications. Let’s take a look in some features from it. |
VB (VB 9.0), C# 3.0, .NET (.NET 3.5), WinForms, WebForms, VS2008, Architect, Dev
|
||||||||
|
Advanced Search |
|
|
|
||||||||||||||||
Microsoft has just launched a very rich chart control for .NET web and windows forms applications. Let’s take a look in some features from it.
The following chart types are available:
You still have the option to combine more than one chart type.
The following options are available to be used as bind types for your application charts:
The examples and documentation are really good and to work with the new Microsoft Chart control is very straightforward. Drag and drop a chart control, set properties in design and / or runtime and it’s done!
The namespace you are going to use is System.Web.UI.DataVisualization.Charting.
The following code uses two arrays to create a simple pie chart:
double[] yValues = { 10, 27.5, 7, 12, 45.5};
string[] xNames = { “Mike”, “John”, “William”, “George”, “Alex” };
myChart.Series[0].Points.DataBindXY(xNames, yValues);
Output:

Picture 1: Pie chart created with array databind.
Using the same code but changing some values will produce the following bar chart:

Picture 2: Column chart created with an array databind.
This new control set is really rich on the level of customization allowed. Some other features of the new Microsoft Chart control includes:
If you want to get more information, take a look in the documentation, check over 200 examples included on the samples or visit the Chart Forum.
| You must Sign In to use this message board. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 1 Dec 2008 Editor: |
Copyright 2008 by Cirilo Meggiolaro Everything else Copyright © CodeProject, 1999-2009 Web12 | Advertise on the Code Project |