Code for chart control in asp.net mvc
how to usae chart control in asp.net mvc application
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Krishna GaradRank #191 · 12.8K reputationPosted Jan 3, 2012, 7:00 PM EST
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");