33 lines
1.4 KiB
JavaScript
33 lines
1.4 KiB
JavaScript
import{j as i}from"./jsx-runtime-94f6e698.js";import{V as s}from"./Vega-d925c94f.js";import"./index-8db94870.js";import"./_commonjsHelpers-042e6b4d.js";import"./index-1fc0ca9a.js";function e(t){return i.jsx(s,{...t})}try{e.displayName="Vega",e.__docgenInfo={description:"",displayName:"Vega",props:{}}}catch{}const l={title:"Components/Vega",component:e,tags:["autodocs"]},a={name:"Chart built with Vega",args:{data:{table:[{y:-.418,x:1850},{y:.923,x:2020}]},spec:{$schema:"https://vega.github.io/schema/vega-lite/v4.json",mark:"bar",data:{name:"table"},encoding:{x:{field:"x",type:"ordinal"},y:{field:"y",type:"quantitative"}}}}};var n,r,o;a.parameters={...a.parameters,docs:{...(n=a.parameters)==null?void 0:n.docs,source:{originalSource:`{
|
|
name: 'Chart built with Vega',
|
|
args: {
|
|
data: {
|
|
table: [{
|
|
y: -0.418,
|
|
x: 1850
|
|
}, {
|
|
y: 0.923,
|
|
x: 2020
|
|
}]
|
|
},
|
|
spec: {
|
|
$schema: 'https://vega.github.io/schema/vega-lite/v4.json',
|
|
mark: 'bar',
|
|
data: {
|
|
name: 'table'
|
|
},
|
|
encoding: {
|
|
x: {
|
|
field: 'x',
|
|
type: 'ordinal'
|
|
},
|
|
y: {
|
|
field: 'y',
|
|
type: 'quantitative'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}`,...(o=(r=a.parameters)==null?void 0:r.docs)==null?void 0:o.source}}};const y=["Primary"];export{a as Primary,y as __namedExportsOrder,l as default};
|
|
//# sourceMappingURL=Vega.stories-751bd69b.js.map
|