开发者

ASP.Net Chart Control with MVC3 Razor

开发者 https://www.devze.com 2023-02-10 03:50 出处:网络
I am using ASP.Net MVC3 and the MS chart controls to draw a pie chart. It seems I have to set 开发者_运维技巧an IMG control with the source set to an action controller.

I am using ASP.Net MVC3 and the MS chart controls to draw a pie chart.

It seems I have to set 开发者_运维技巧an IMG control with the source set to an action controller. However this looses the possibility of being able to 'click' on the image and get a redirect to another page with the relevant segment that has been clicked.

Can anyone help?

Thanks


This tutorial - here. Should help you, however in doing this it will add a viewstate to your views. It basically adds runat="server" to your page so treats it like any normal webforms page and violates the MVC principal.

If your bothered about that then there are a number of javascript charts that can be used - the Google chart api is a good start.

0

精彩评论

暂无评论...
验证码 换一张
取 消