CanvasJS in react webpart SPFx

hecben 11 Reputation points
2022-07-19T18:31:54.397+00:00

Hi everyone,

I'm currently trying to move my website into sharepoint SPFx, but have several features including CanvasJS. After searching around, I don't seem to have any clear answer or alternative. Was wondering if anyone has had experience integrating/using CanvasJS within their webpart?

Hoping to hear a solution soon! Thanks!

hecben

Microsoft 365 and Office SharePoint Development
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2022-07-20T09:48:11.227+00:00

    Hi @hecben
    Per my research, I have searched a lot but unfortunately cannot found similar document about using CanvasJS in spfx. As a workaround, I will recommend you to use chartjs to as alternative.
    Please refer to following code
    https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-modern-charts


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.