color method

VlChartMark color(
  1. String field
)

Colour, and the legend that explains it.

Names a COLUMN, never a constant. .color("red") means a column called red; painting a mark red is markColor.

field The column name.

Returns This mark, so channels chain.

Implementation

VlChartMark color(String field) {
  return this.channel("color", field);
}