Square#
square mark is similar to point mark, except that (1) the shape value is always set to square (2) they are filled by default.
Square Mark Properties#
A square mark definition can contain any standard mark properties
and the following special properties:
Click to show table
Property  | 
Type  | 
Description  | 
|---|---|---|
size  | 
anyOf(  | 
Default size for marks. 
 Default value: 
  | 
Scatter Plot with Square#
import altair as alt
from vega_datasets import data
source = data.cars()
alt.Chart(source).mark_square().encode(
   x="Horsepower:Q",
   y="Miles_per_Gallon:Q",
)