我像这样在控制器中动态创建图表
var chart = new Chart();
var returnStream = new MemoryStream();
chart.ImageType = ChartImageType.Png;
chart.SaveImage(returnStream);
returnStream.Position = 0;
return new FileStreamResult(returnStream, "image/png");
//finally iam returning image to view and binding to image