In .NET 3.5 SP1, Microsoft introduced the chart controls to the framework. This set of controls provide rich visualization of data in a different kinds of graphs and charts. The controls are databindable and highly customizable.
I happened to work at a project that required us to stick to the 2.0 version of the .NET framework due to production environment running on Windows 2000. Since I could see the graph controls would add business value to our application, I wanted to figure out if one could run the controls on a 2.0 framework - and you can. You might argue we live in the stone age (and you're right), but I'm sure we're not the only company left in the world in this situation. Therefore I here present you with a step-by-step guide on how to get your .NET Forms project running on a .NET 2.0-based client with chart controls. One catch: the development environment needs to have .NET 3.5 SP1 installed.
Step 1 through 3 are general installation instructions, 4 is the key to making it work on the 2.0 platform:
- Make sure you have .NET Framework 3.5 installed on your developer computer.
- Download and install Microsoft Chart Controls for .NET 3.5 from Microsoft.com on the developer computer.
- Open the Visual Studio project you want to work with and make sure you have the Chart control listed under the Data tab in the toolbox. If you don't: Select and right click the data tab and select Choose items, then scroll down and select the two Chart controls listed under .NET Framework Components.
- Add the following DLL as a reference to your project:C:\Program Files\Microsoft Chart Controls\Assemblies\System.Windows.Forms.DataVisualization.dll
Open the properties of the reference and set Copy local to true