Pre loader

Add support to SSR Frameworks

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

0
0

Hello guys,

Can you provide an example how to implement scichart on SSR Frameworks like Nuxt or Next.js ? I am trying to understand how i can compile a simple chart using Nuxt, getting the .data/.wasm file but i have problem after building process.

Can you help?

Many thanks

Pedro Cruz

Version
^1.1.1382
  • Andrew Burnett-Thompson
    Hey Pedro, you probably know more about Next.js than we do, would you be willing to share what you’ve got so far? maybe our team can help you take it to completion. Best regards, Andrew
  • Ricardo Diz
    Hey Andrew Burnett, I have made a repo to show you guys how to setup vue-scichart in Nuxt https://github.com/pedropcruz/example-nuxt-scichart PS: Not in Next.js Kind Regards, Pedro Cruz
  • You must to post comments
0
0

Hi Pedro,

SciChart.js support for Server Side Frameworks like Next.js and Nuxt.js is pretty straightforward. The most important is to copy scichart2d.wasm and scichart2d.data files into the appropriate place.

scichart2d.wasm should be placed in the same folder as bundle.js/main.js file and scichart2d.data should go to the server root folder.
Another way is to place both files into the server root folder and to set HTML base tag

<base href="/"> 

We have created an example for Next.js, please check it out here – SciChart.js example with Next.js

I believe that for Nuxt.js it should be similar.

Another

Best regards,
Michael

  • 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