Code for chart control in asp.net mvc
how to usae chart control in asp.net mvc application
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Krishna GaradPosted Jan 4, 2012, 12:00 AM
var bytes = new Chart(width: 400, height: 800)
.AddSeries(
chartType: "bar",
xValue: new[] { "Math", "English", "Computer", "Urdu" },
yValues: new[] { "60", "70", "68", "88" })
.GetBytes("png");
return File(bytes, "image/png");