Is there any difference between system.web.datavisualization and system.web.UI.datavisualization
开发者_StackOverflowI've found a nice article on how to create Chart progammaticaly in ASP.NET MVC on ASP.NET website. Scott Mitchell, the author, uses a class called Chart() that he said comes from system.web.UI.datavisualization. But, when I try to reference system.web.UI.datavisualization namespafe from my projet,looking at the .NET tab, I don't see it. Instead, I find system.web.datavisualization (without UI between System and DataVisualization).
I wonder if we are talking about the same namespace. If that's not the case, where can I find the system.web.UI.datavisualization and how to install it?
Thanks for helping.
The Chart class is located in the System.Web.UI.DataVisualization.Charting namespace (there is UI here) in the System.Web.DataVisualization.dll assembly (no UI here).
The .NET tab of the Add Reference window shows a list of assemblies (not namespaces), so you will see System.Web.DataVisualization (not System.Web.UI.DataVisualization.Charting) there.
精彩评论