Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
i am working on mvc3 here my task is i have to bind data to the pie chart from ADO.Net Entity Data Model(.edmx file )

here I had created my .edmx file

from now how should i bind the data to the pie chart in mvc3

how should i write the models

and how should i create controllers

and how should i create view

now i should view pi-chart plz help me to do this work

thanks in advance
Posted
Updated 18-Aug-12 0:15am
v2

1 solution

Your edmx is an entity framework file, correct ? You would expose your data in a viewmodel, that builds itself from EF classes that represent what is in the DB. You can make an AJAX call to get your data ( and if you're not, I don't see where JSON fits ). However, you've not named one mechanism for showing a pie chart. If it's an image created on your server, pass the data back, get back the URL of an image file and set it with jquery. If you're using a component, then look at the HTML you need to create and work out how to create it, or ask us a more specific question,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900