there is such a code
var ctx = document.getElementById("line-chart1").getContext("2d"); window.weightChart1 = new Chart(ctx, { type: 'line', data: lineChartData, options: lineChartOptions, }); document.getElementById("line-chart-legend").innerHTML = weightChart1.generateLegend(); he catches the first one and stops there, and I need him to fill in all the found ideas.