Back to the wall

Colored Scatterplot

Single-View Plots / Scatter & Strip Plots · point · Supported · point_color_with_shape

The spec

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "A scatterplot showing body mass and flipper lengths of penguins.",
  "data": {
    "url": "data/penguins.json"
  },
  "mark": "point",
  "encoding": {
    "x": {
      "field": "Flipper Length (mm)",
      "type": "quantitative",
      "scale": {"zero": false}
    },
    "y": {
      "field": "Body Mass (g)",
      "type": "quantitative",
      "scale": {"zero": false}
    },
    "color": {"field": "Species", "type": "nominal"},
    "shape": {"field": "Species", "type": "nominal"}
  }
}

PlotKit's render (light and dark follow your system setting)

Colored Scatterplot: a point chart rendered by PlotKit from the spec above

PlotKit · In development · support matrix 11 September 2026