Chartjs-Chart.js: segment true is not working in labels outside pie chart : chart.piecelabel.js

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/

Leave a comment