emn178 / chartjs-plugin-labels

Plugin for Chart.js to display percentage, value or label in Pie or Doughnut.
MIT License
612 stars 219 forks source link

Got images to work.. quick question #104

Open rajan77 opened 4 years ago

rajan77 commented 4 years ago

render: function () { // args will be something like: // { label: 'Label', value: 123, percentage: 50, index: 0, dataset: {...} } //return '$' + args.value;

// return object if it is image
return { src: '/images/logo_transp.gif', width: 151, height: 15 };

},

works nicely. How can I have one image for the entire graph, and not one per data? Is this doable?

Thanks