count method
- String channel
Sets a channel to a count of rows: one number per group, with no column to read.
channel The channel to put the count on, usually "y" or "x".
Returns This mark, so calls chain.
Implementation
VlChartMark count(String channel) {
VlJson ch = VlJson.objectValue();
ch.setMember("aggregate", VlJson.stringValue("count"));
ch.setMember("type", VlJson.stringValue("quantitative"));
this.enc.setMember(channel, ch);
cursor = channel;
return this;
}