var countries = ['한국', '미국', '일본', '독일'];
var products = ['Alpha', 'Beta', 'Gamma'];
var data = Array.from({ length: 24 }, function(_, i) {
return {
country: countries[i % countries.length],
product: products[Math.floor(i / countries.length) % products.length],
sales: (i + 1) * 1500 + (i % 3) * 800,
expenses: (i + 1) * 900 + (i % 2) * 400
};
});
var cv = new wijmo.collections.CollectionView(data, {
groupDescriptions: ['country']
});
cv.sortDescriptions.push(new wijmo.collections.SortDescription('country', true));