Home Forums StockChart Support stockcharts and charts do not work in vue or nuxt or even in npm runkit Reply To: stockcharts and charts do not work in vue or nuxt or even in npm runkit

#44934

@klauskobald,

CanvasJS is a client-side library that requires browser environment and APIs to run. You should prevent running CanvasJS in the server environment. To do so in Nuxt app, you can use .client suffix to your component containing CanvasJS Chart. Please checkout this StackBlitz example for an example on integrating CanvasJS Charts in Nuxt app.

Integrate CanvasJS Charts in Nuxt Application

Also, check out this documentation page of nuxt to know more about client side component.

—-
Manoj Mohan
Team CanvasJS