|
楼主 |
发表于 2023-7-11 16:07:36
|
显示全部楼层
// Mapper = Mappers.Xy<DefectData>()
//.X((city, index) => index)
//.Y(city => city.Population);
// List<City> Cities = new List<City>();
// Cities.Add(new City { Name = "Bejing", Population=1000 });
// Cities.Add(new City { Name = "Shenzhen", Population = 800 });
// Cities.Add(new City { Name = "Shanghai", Population = 900 });
// var records = Cities.OrderByDescending(x => x.Population).Take(3).ToArray();
//Results = records.AsChartValues();
//Labels = new ObservableCollection<string>(records.Select(x => x.Name)); |
|