10

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

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

yeah, if it wasn't for your stipulation, I'd have voted this down :) I agree with the google charts as a good start.
This isn't really an answer, since the question is about ASP.NET MVC3 and the Razor template language, and the post you linked is from 2008 and uses the ASP.NET template style.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.