0

This is a react project. I'm running the latest version of all software. I am trying to create a pie chart but when the legend names are clicked, it changes the graph. So far I've tried each of the lines in the legend below.

 legend: { onClick: (e) => e.stopPropagation() display: false onclick(){} }, 
Share

    1 Answer 1

    0

    you are configuring it in the wrong place, you put it in options.legend while the legend options needs to be configured in the options.plugins.legend namespace

    Share

      Not the answer you're looking for? Browse other questions tagged or ask your own question.