External js library like Chart.js

Hi guys! Hope you are well since last time.

After my post about data chart for visualisation purpose, Im thinking to integrate an external libray like Chart.js. which uses canvas technic.

I suppose I have to code in javascript block editor, like this chart.js code I copied:

But, of course, it does not work :joy:

Does someone know hohw to integrate an external js library please? What’s about installation (cdn), integration in gdevelop?

Hi there!

Here’s an answer from D8H on the Discord, for this specific library:

I guess that this library does the rendering and doesn’t use Pixi. It would probably take to rewrite the rendering to use it with GDevelop or do it from scratch using events and a shape painter.

Meaning: a lot of js expert work ahead. :sweat_smile: