175
Views
3
Comments
How integrate my application with Chart.Js?
Question

I need some help, I'm new in Outsystems, how I integrate my application with some others plugin of Javascript?

2016-11-20 11-27-52
João Neves

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

UserImage.jpg
Elias Bellido

Leidy Navarro wrote:

I need some help, I'm new in Outsystems, how I integrate my application with some others plugin of Javascript?

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.


UserImage.jpg
Sergii Gushchyn

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

ChartJS.JPG
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.