MSChart Control is originally a webforms control. The typical strategy for including this control on ASP.NET MVC is to create the chart in the controller then render it as an image to the view. Here's an example of how it's actually done.

My concern is then since the chart itself is rendered as an image, you are not able to bind any chart-related events to it with normal methods, such as mouse hover on a point to show tooltip or click event on a bar. Would something like this possible on MVC?

有帮助吗?

解决方案

Nope. Not with the MSChart control. Because like webforms, everything gets sent to the browser and is rendered there. The chart is just an image.

A lot of people use HighCharts. I've used Google charts.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top