Pre loader

Deploying Scichart.js build

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
1
0

Good day,

I am evaluating the use of scichart.js as a charting tool for our web dashboard in an offline environment. As a way of testing, I am currently trying to deploy the build of demo-create-react-app from the SDK on IIS. The build works if deployed using serve -s build but I get this error when I try to deploy the build on IIS.

Failed to load resource: the server responded with a status of 404 (Not Found) (localhost:3553/scichart2d.data:1)
Uncaught Error: Not Found : http://localhost:3553/scichart2d.data
    at XMLHttpRequest.r.onload (2.1e4d934a.chunk.js:2)(scichart2d.js:12)

I would also like to confirm if Scichart.js can work in an offline environment since I saw in this forum post that SciChart gets the .wasm and .data files from the CDN.

Version
2.0.2146
Images
  • You must to post comments
Best Answer
2
0

Hi Yohann,
1. Make sure that wasm and data files are served by IIS. You can check it by entering file location into the browser URL (checkout the screenshot). You might need to set up IIS to serve WebAssembly files and to enable additional MIME types, like here https://platform.uno/docs/articles/how-to-host-a-webassembly-app.html
2. Check in Chrome dev tools that wasm and data file location is correct. If you need use this API to set the correct location.

// LOAD LOCALLY FROM A DIFFERENT URL
SciChartSurface.configure({
  wasmUrl: "/wasm/path/scichart2d.wasm",
  dataUrl: "/data/path/scichart2d.data"
});

Best regards,
Michael Klishevich

Images
  • 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