Square

Edit this page
// Single View Specification
{
  "data": ... ,
  "mark": "square",
  "encoding": ... ,
  ...
}

square marks is similar to point mark, except that (1) the shape value is always set to square (2) they are filled by default.

Scatterplot with Square

Here are an example scatter plot with square marks:

Square Config

// Top-level View Specification
{
  ...
  "config": {
    "square": ...,
    ...
  }
}

The square property of the top-level config object sets the default properties for all square marks. If mark property encoding channels are specified for marks, these config values will be overridden.

For the list of all supported properties, please see the mark config documentation.