ui-kit-ck-consultant 0.5.169 → 0.5.172
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -2247,6 +2247,7 @@ var PieChart = /*#__PURE__*/function (_React$Component) {
|
|
2247
2247
|
var dataValue = {
|
2248
2248
|
labels: [],
|
2249
2249
|
datasets: [{
|
2250
|
+
percentage: [],
|
2250
2251
|
data: [],
|
2251
2252
|
backgroundColor: [],
|
2252
2253
|
hoverBackgroundColor: []
|
@@ -2255,6 +2256,7 @@ var PieChart = /*#__PURE__*/function (_React$Component) {
|
|
2255
2256
|
|
2256
2257
|
for (var i = 0; i < nbValue; i++) {
|
2257
2258
|
dataValue.datasets[0].datalabels = this.props.datalabels2 ? this.props.datalabels2[i] : null;
|
2259
|
+
dataValue.datasets[0].percentage.push(this.props.data[i].percentage);
|
2258
2260
|
dataValue.datasets[0].data.push(this.props.data[i].data);
|
2259
2261
|
dataValue.datasets[0].backgroundColor.push(this.props.data[i].color);
|
2260
2262
|
dataValue.datasets[0].hoverBackgroundColor.push(this.props.data[i].color + '80');
|
@@ -2313,7 +2315,7 @@ var PieChart = /*#__PURE__*/function (_React$Component) {
|
|
2313
2315
|
},
|
2314
2316
|
tooltips: {
|
2315
2317
|
callbacks: {
|
2316
|
-
label: function
|
2318
|
+
label: this.props.label ? this.props.label : function (tooltipItem, data) {
|
2317
2319
|
var name = _this.props.name ? _this.props.name : data.labels[tooltipItem.index] || '';
|
2318
2320
|
var digits = _this.props.digits >= 0 ? _this.props.digits : 2;
|
2319
2321
|
|