How to customize the tooltip of a Chart.js 2.0 Doughnut Chart?
问题 I'm trying to show some data using a doughnut chart from Chart.js2. My current chart looks like this: My desired output must show another attribute, which is the percentage, and looks like this: I've read the documentation, but I can't cope with this because it's very general and I'm new to JavaScript. My code for the first chart is the following: const renderCashCurrencyPie = (cashAnalysisBalances) => { if (cashAnalysisBalances) { const currenciesName = cashAnalysisBalances .map(curName =>