mark method

VlChartMark mark(
  1. String markType
)

Adds a mark of any type the compiler knows.

markType The Vega-Lite mark name.

Returns The new mark, so its channels and properties chain.

Implementation

VlChartMark mark(String markType) {
  VlChartMark m =  VlChartMark();
  m.markType = markType;
  m.owner = this;
  marks.add(m);
  return m;
}