Cannot find the System.Web.UI.DataVisualization.Charting namespace

I want to use inline diagrams with .net 4. I have an existing MVC3 application, but I can’t see the link for this namespace?

Does anyone know where this is?

Thanks,

Darren.

+6
source share
3 answers

I believe in the System.Web.DataVisualization DLL.

+14
source

Add System.Web.UI.DataVisualization as an assembly reference for your project.

And after you can declare a namespace:

 using System.Web.UI.DataVisualization.Charting; 
+4
source

Add System.Web.DataVisualization as an assembly reference. (It was located in the .net tab). Add the following statement:

 using Charting = System.Web.UI.DataVisualization.Charting; 

From there you will link to your charts this way

 Charting.Chart myNewChart = new Charting.Chart(); 

This will help keep the namespace a little cleaner and probably avoid some clashes, as the vocabulary surrounding the world of graphics is not very unique.

+1
source

Source: https://habr.com/ru/post/895755/


All Articles