-
Notifications
You must be signed in to change notification settings - Fork 31
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
VueJs Web Component build #95
Comments
@ndoulgeridis FusionCharts needs a container to render the charts, since it's not getting the container hence the error is showing. |
There is a container but when I build using I think this causes the problem then on render because the container with ID If I run for example So what I understand is fusion charts are not compatible when you try to render them in an element that is part of shadow dom. Is there a workaround? |
not that I can think of immediately, if you are looking for server-side rendering you can check out FusionExport, for FusionCharts make sure the dom node is present where the chart will render. |
hi, faced the same issue: fusioncharts can't find the container within shadow dom. @ndoulgeridis any solutions? |
No, I migrated to another library |
@raman-nareika which version by vue are you using if its vue2 use vue-fusioncharts 3.1.0 |
@AyanBhadury we use v3.1.0 |
@ndoulgeridis found a solution: FusionChart.vue
So, you can use the component above and inject |
I am trying to build a chart using VueJS web component:
vue-cli-service build --target wc --inline-vue --name my-app ./src/App.vue --env=production
This command produces the following files on dist:
However when I see dist.html on the browser I get:
I suspect the problem is with shadow dom:
When it tries to get the element to render the chart it fails due to shadow dom VueJS WC build produces.
When run
yarn serve
app is working fine but does not produce shadow DOM:Do you think shadow DOM bugs fusion charts? Is there a workaround? Do I miss something there?
The text was updated successfully, but these errors were encountered: