Cannot find namespace System.Web.UI.DataVisualization.Charting
I'm wanting to use the inbuilt charting thats with .net 4. I have an existing MVC3 application, but I cannot seem to see the reference for this 开发者_JAVA百科namespace?
Anybody know where it is?
Thanks,
Darren.
I believe it's in the System.Web.DataVisualization DLL.
Add System.Web.UI.DataVisualization
as Assembly reference to your project.
And after you will be able to declare the namespace:
using System.Web.UI.DataVisualization.Charting;
Add System.Web.DataVisualization as Assembly reference. (Was located in the .net Tab.) Add the following using statement
using Charting = System.Web.UI.DataVisualization.Charting;
From there you will reference your charting pieces like so
Charting.Chart myNewChart = new Charting.Chart();
It will help keep your namespace a bit cleaner and probably avoid some collisions as the lexicon surrounding the graphing world is not very unique.
精彩评论