Implementing FusionCharts library in frappe

I have created a custom page in frappe
It’s a dashboard page
And i want to use fusioncharts library to render the charts
I have imported the library in the file “erpnext.bundle.js” then i used it in the page source file but it throws an exception
What is the problem



how did you solve this ?