Does somebody know how to create a chart by code? C#, Visual Studio 2010. (Form application)If i use the “drag” method (if i add manually) the generated code is
private System.Windows.Forms.DataVisualization.Charting.Chart chart1;
but when i’m trying to use the same thing just don’t work. I cant find out witch witch “using” should i use. It looks like “System.Windows.Forms.DataVisualization” doesn’t exist.
You need the actual .DLL of the datavisualization. You need to download the .dll from Microsoft or should be in there. Try compiling the project.