Chartjs-ChartJS generateLegend()

0👍

Without seeing your code, it’s almost impossible to tell why exactly this TypeError occurs. From the posted image, I deduct however that the use of generatelabels is not the ideal choice to achieve what you need.

What you really need is generating custom HTML legend using legendCallback together with some CSS.

Please take a look at the following posts to see how this could be done:

Leave a comment