How do you display the values of each pie in a pie chart using ChartHelper? I am using MVC3/Razor syntax.
Trying to do something like this:

The image is from this tutorial for ChartHelper in MVC:
My code:
var bytes = new Chart(600, 300).AddSeries(
chartType: "pie",
legend: "Sales in Store per Payment Collected",
xValue: viewModel.SalesInStorePerPaymentCollected.XValues,
yValues: viewModel.SalesInStorePerPaymentCollected.YValues
)
.GetBytes("png");
return File(bytes, "image/png");
I did it by using the
System.Web.UI.DataVisualization.Charting.Chartclass.Here is the code in my Controller:
And the View: