我在控制器中动态创建了图表
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
答案 0 :(得分:0)
您必须组合两个动作(一个用于图像,一个用于地图),并使用ImageMap RenderType作为地图:
请参阅“图表图像渲染”http://msdn.microsoft.com/en-us/library/dd456682.aspx