I need some help, I'm new in Outsystems, how I integrate my application with some others plugin of Javascript?
Hi Leidy,
Are you developing a mobile App in version 10?
I suggest that you start here:
https://success.outsystems.com/Documentation/10/Extensibility_and_Integration/JavaScript/Extend_Your_Mobile_App_Using_JavaScript
Leidy Navarro wrote:
Hi Leidy, I would like to know about your experience integrating chart.js in outsystems. Did you have any trouble or everything just went fine? Thanks in advance.
If anyone is still looking into this integration.
I found a list of chart.js libraries available for download for JavaScript https://cdnjs.com/libraries/Chart.js (Not every file worked for me). When using incorrect file I would get an error message "Chart is not declared". The file that worked for me was downloaded at https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.1/chart.umd.js (This is version 4 of the library. Not all solutions on stack overflow work with this version. You should look for proper documentation).
After I downloaded the file, I opened my module and right clicked on the Scripts folder at the bottom of the panel. I chose an option in the menu "Import Script". It uploaded "chart_umd.js" file. After that I opened my block and under "Required Scripts" configuration I selected "chart_umd".
And after that the library was available inside JavaScript block. Example below
Regards,
Sergii