Pre loader

Chart rendering inside shadow DOM

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

Answered
0
0

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.

Version
2.0.2139
  • You must to post comments
Best Answer
2
0

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

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies