Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use in custom element not working #3946

Open
ray007 opened this issue Feb 6, 2025 · 1 comment
Open

use in custom element not working #3946

ray007 opened this issue Feb 6, 2025 · 1 comment

Comments

@ray007
Copy link

ray007 commented Feb 6, 2025

I'm trying to show a RadarChart chart inside a custom element (implemented with lit element).

But instead of inside the shadow dom, I see 2 div elements with class="bb" added to the body.

I've tried with specifying the bindto argument as d2.selection or HTMLElement, but it doesn't change anything.
Otherwise, configuration for testing was taken from the basic example at https://naver.github.io/billboard.js/demo/#Chart.RadarChart.

No problems to see on the console, so no idea what could be going wrong...

@netil
Copy link
Member

netil commented Feb 10, 2025

Hi @ray007, I made an example natively(not by using Lit)

I see 2 div elements with class="bb" added to the body.

Based on your comment, can't figure out the cause, but from the above example you'll see one div element generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants