How to use external chart libraries in widgets?
It's definitely not the idea of widget to use this concept to programmatically create your visualization objects. Widget is a concept focused on declarative languages like Html and CSS. Create a visualization extension if you want to leverage the full power of JavaScript an existing libraries instead.
In this tutorial
On this page