evidence icon indicating copy to clipboard operation
evidence copied to clipboard

Observable Plot Plugin Component

Open mcrascal opened this issue 2 years ago • 0 comments

  • Define a data set coming from USQL, and provide a chart config as an object, get an observable plot that is reactive to data updates.
  • Docs
  • Example usage:

<OBPlot 
data = {my_query} 
config={(Plot) => ({
     color: {legend: true},
     marks: [
       Plot.ruleY([0]),
       Plot.lineY(stocks, {x: "Date", y: "Close", stroke: "Symbol"})
     ]
})}/>

mcrascal avatar Jan 08 '24 17:01 mcrascal