EXEPERTAI LAB

Research alpha

Time Machine
EXEPERTAI LAB
GALLERY / COLLECTION
← Browse Astryx gallery
VegaChart.doc.mjs·component·@astryxdesign/vegaExperimental

Vega Chart

Renders Vega and Vega-Lite specifications through the Vega runtime. Experimental component in @astryxdesign/vega (canary).

@astryxdesign/vega

Usage

Renders Vega and Vega-Lite specifications through the Vega runtime. Experimental component in @astryxdesign/vega (canary).

  • Only render specifications you authored or reviewed. For untrusted specs, configure the interpreter and a restricted loader as described in the package README.
  • Keep spec and option objects stable to avoid recreating the Vega View unnecessarily.

Typed props

PropType and behavior
specAnySpec · required
A Vega or Vega-Lite specification with an official $schema URL.
dataViewData
Initial values for datasets named by the spec. Read when the view is created; later updates should use the live View.
compileOptionsCompileOptions
Options passed to Vega-Lite compilation. Ignored for native Vega specs.
parseConfigConfig
Vega configuration passed to vega.parse().
parseOptionsParseOptions
Options passed to vega.parse().
viewOptionsOmit<ViewOptions, 'container'>
Options passed to the Vega View. The component always supplies the container.
onReady(view: View) => void
Called with the live Vega View after the first render.
onError(error: Error) => void
Called when schema validation, compilation, or rendering fails.