I am getting an error trying to initialize chart inside the shadow root element:
sciChartInitCommon.js:224 Chart div element with the ID "my-unique-chart-id is not present in the DOM
or
sciChartInitCommon.js:43 Uncaught (in promise) Error: Check div element with id "my-unique-chart-id" exists
Is there overrides for SciChartSurface.create method to pass target html node instead of it`s ID? Or maybe I have missed any other built-in way to use SC inside shadow DOM? Thanks for the advise.
- Sergey Chernyakov asked 2 years ago
-
Hello Sergey, We have logged this as a feature request improvement to our backlog – https://abtsoftware.myjetbrains.com/youtrack/issue/SCJS-974 , and will let you know about the updates. BR, Ivan
-
Thanks so much, Ivan. I am looking forward for the updates on this issue because the ability to use SC with shadow DOM is one of the major requirements for my solution.
-
Hello Sergey, Could you provide a sample project and description of what you are trying to achieve with a minimal setup, so we can better understand the full picture? You can use one of our demos as a boilerplate – https://github.com/ABTSoftware/SciChart.JS.Examples/tree/master/Sandbox BR, Ivan
-
Hello Ivan, please take a look on repo https://github.com/schernyakov/sc-web-component Fill free to contact me if you have any question
- You must login to post comments
Hello Sergey,
Thanks for the example!
Please check out version 2.0.2228 of the lib.
We have added an ability to pass a div node ref instead of an id to the SciChart.create method.
Let us know if everything works fine for you and if you have this kind of issues in any other place.
Best Regards,
Ivan
- Ivan Gasyuk answered 2 years ago
-
Hello, Ivan. That’s great news, thank you!
- You must login to post comments
Please login first to submit.