Skip to main content

Style Vega-Lite

Vega-Lite controls presentation through marks, encodings, scales, axes, legends, and configuration.

Start with the general presentation settings. They control the canvas background, padding, and frame for every diagram.

Source controlsโ€‹

  • Set mark properties for one mark.
  • Set channel scale and axis properties in the encoding.
  • Use the configuration object for common defaults.
  • Keep all data and images inline.

Limitationsโ€‹

  • URL-backed data and images are not available.
  • diagram.zip returns SVG for this type.