score:0

it looks like chart.piecelabel.js has updated their syntax. their latest versions no longer use piecelabel but a plugin: labels: stanza.

 options: {
     plugins: {
       labels: {
         render: function (args) {
           const label = args.label,
                 value = args.value;
           return label + '\n' + value;
         }
       }
     }
   }

fiddle here: https://jsfiddle.net/d047bqzo/5/


Related Query

More Query from same tag