Individual ID for each created chart

Good morning friends.

I’m new here, I apologize if I say anything interesting.

I created a new plugin, using CHART.JS, until I succeeded in creating it, but I got some problems … when creating the chart it works, but if I duplicate or create a new chart on the same screen, it does not even appear. As if only the graphical primer created was receiving values ​​from the bank or something like that. I believe that I will have to create an “ID” for each new graphic created. Could you help me with that?

we are not familiar with chart.js and how it handles this. You can use as a unique id, grafana generates that when you add a new panel