tooltipFields method
Shows several named columns as the tooltip, in the order they should be read.
A list is not a channel, so the cursor does not move onto it: the next title
belongs to whatever was named before.
fields The column names, in reading order.
Returns This mark, so calls chain.
See also tooltip.
Implementation
VlChartMark tooltipFields(List<String> fields) {
VlJson list = VlJson.arrayValue();
for ( final field in fields) {
VlJson one = VlJson.objectValue();
one.setMember("field", VlJson.stringValue(field));
list.arr.add(one);
}
this.enc.setMember("tooltip", list);
return this;
}