I have an MVC4 application that I am working on and I am trying to find a way to generate a line graph that I can then send out in an email.
Clients are also going to be looking a graphs of similar data on a website and I would like to use the same tool for each (for visual consistency and maintenance).
I looked into using Microsoft Chart Controls, but I can’t find any MVC4/Razor examples or tutorials.
Can anyone point me in the right direction?
All of the Microsoft chart controls have the ability to save the chart as a PNG file. You would need to save the chart and either embed it as part of an HTML-formatted message body or attach the image.
some sample code
This isn’t much, but it should get you started.