Can I indicate what color looks in each section of the cake? Also, is it possible to display the legend from the side?
For example: in the table below, can I indicate that "Pass" is displayed in green, Fail as red and is not known as gray?
public ActionResult GetRainfallChart() { var key = new Chart(width: 600, height: 400).AddSeries( chartType: "pie", legend: "Test pass", xValue: new[] { "Pass", "Fail", "Unknown" }, yValues: new[] { "50", "30", "20" }) .Write(); return null; }
If this is not possible using the βchartβ control, which is part of the System.Web.Helpers assembly, can someone tell me how to do this using asp.net controls for web forms in an MVC project.
source share