public static List <SelectListItem> GetPieExplodePoints() { List <SelectListItem> explodePoints = new List <SelectListItem>() { new SelectListItem() { Text = "None", Value = PieExplodeMode.None.ToString() }, new SelectListItem() { Text = "All", Value = PieExplodeMode.All.ToString() }, new SelectListItem() { Text = "Min Value", Value = PieExplodeMode.MinValue.ToString() }, new SelectListItem() { Text = "Max Value", Value = PieExplodeMode.MaxValue.ToString() }, }; foreach (Country country in CountriesProvider.GetCountries()) { explodePoints.Add(new SelectListItem() { Text = country.Name, Value = country.Name }); } return(explodePoints); }
public ActionResult PieDoughnutViews() { ViewData[ChartDemoHelper.OptionsKey] = new ChartPieDoughnutViewsDemoOptions(); return(DemoView("PieDoughnutViews", CountriesProvider.GetCountries())); }