3

I've used the System.Web.UI.DataVisualization.Charting namespace a lot in ASP.NET MVC 5, Windows Forms, WPF and UWP apps but cannot see how you can use this namespace in .NET Core Web Apps?

I'm targeting .NET Core 2.1

Any help or pointers would be appreciated.

Lee Englestone
  • 4,545
  • 13
  • 51
  • 85
  • How did you end up proceeding? We're migrating our .NET Framework class libraries (which used System.Web.UI.DataVisualization.Charting extensively) to .NET Core / Standard so are interested in alternatives... – Justin Feb 12 '19 at 16:12
  • @justin I think I gave up in the end – Lee Englestone Feb 25 '19 at 16:15

1 Answers1

0

The System.Web namespace is not available on .Net Core, the reason being, it is tied to Windows through dependencies on things like http.sys.

While it may be possible to use it running Asp.Net Core on top of the full framework, you will find you loose a lot of the benefits of using core in the first place. I've not tried this namespace personally, but going off of other SO questions, it probably won't work properly anyway.

CodedBeard
  • 862
  • 8
  • 19
  • Thanks, I feared as much. I suppose I could try and use another charting library (there are a lot of them). I just love the DataVisualization so much! – Lee Englestone Aug 08 '18 at 10:55