gets the number of items in a group
property | string | a data property |
data | object | a dataset with items of a group |
number | number of items |
$$("mychart").group({
by:"year",
map:{
sales:["sales","count"]
}
});
// displays the total sales for each year