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.