result.title="Reactive value used in spec definition";
result.mark.opacity=opacity;
returnresult;
}
specView={
constresult=_.cloneDeep(specBasic);
result.title="Rective value used with view API";
result.params=[{name:"opacity",value:0.5}];
result.mark.opacity={signal:"opacity"};
returnresult;
}
chartView.signal("opacity",opacity).runAsync()
embed={
constembed=awaitrequire('vega-embed');
constloader=awaitrequire('vega-loader-arrow');
embed.vega.formats('arrow',loader);// register arrow as a supported format
returnembed;
}
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.