Chart.js – how to add icon (or custom html-code) to legend item?
Summary The problem at hand is customizing the legend of a Chart.js doughnut chart to display a country icon before the country name. The user has tried using the generateLabels callback, but it displays HTML code as text instead of rendering the icon. Root Cause The root cause of this issue is that the generateLabels … Read more