Hi @Anonymous
As long as you trust the JavaScript library. Then you can reference it and use it wherever it is necessary.
Microsoft will not block any third-party libraries. But you need to think about while making to production if there is a breaking change in the third party library you depend on. Then this will cause a significant impact on users or clients. And especially security of the third-party library.
For your use case. You can build a PCF component portal using charts. This is also one of the way the portal prefers. Where you can maintain your custom component properly.
On the other hand, the approved and preferred method ways Power BI.
------------
If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.