Comments (2)
Hey @domoritz, I just realised that the first parameter of vegaEmbed
accepts a DOM object as well as a string. So I could achieve the same thing with
await vegaEmbed(
document.querySelector('my-web-component#foo').shadowRoot.querySelector('#el-inside-web-component'),
json,
{ mode: 'vega-lite'},
);
Closing as I think that's sufficient to solve the problem I was facing.
from vega-embed.
Thanks for the issue. I'm not Samia liar with shadow Dom. Can you send a pull request with tests?
from vega-embed.
Related Issues (20)
- "Unexpected token '??='" when imported through vitest HOT 2
- widget generated with vegaEmbed transform dates to numbers when exporting to vega editor
- Allow setting the `scaleFactor` for each format separately HOT 3
- figure#vis does not exist HOT 1
- An option to disable vega expressions HOT 1
- require of a missing iterator.js file breaks builds HOT 19
- CSS missing after upgrading from version 6.19 HOT 1
- vega-embed 6.20.4 breaks downstream package build HOT 10
- dataset insert error HOT 6
- Actions menu icon color lacks sufficient color contrast HOT 1
- WARN: xOffset-encoding is dropped as xOffset is not a valid encoding channel. HOT 4
- How to Overcome CommonJS Dependencies by ECMA Script Module for Vega-Embed package HOT 5
- Embedded style is inundated with `<br>` HOT 4
- Revise supporting default style to avoid injection of code HOT 1
- parcel build fails when using vega-embed as a dependency HOT 1
- browser using cdn copy file include vega-embed using renderChart is not defined HOT 1
- Expose access to `vega.expressionFunction` HOT 6
- Possible bug while rendering vega-lite bar chart HOT 1
- CORS error when loading JSON from local file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vega-embed.