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 CHANGED
@@ -2250,6 +2250,7 @@ var PieChart = /*#__PURE__*/function (_React$Component) {
2250
2250
  var dataValue = {
2251
2251
  labels: [],
2252
2252
  datasets: [{
2253
+ percentage: [],
2253
2254
  data: [],
2254
2255
  backgroundColor: [],
2255
2256
  hoverBackgroundColor: []
@@ -2258,6 +2259,7 @@ var PieChart = /*#__PURE__*/function (_React$Component) {
2258
2259
 
2259
2260
  for (var i = 0; i < nbValue; i++) {
2260
2261
  dataValue.datasets[0].datalabels = this.props.datalabels2 ? this.props.datalabels2[i] : null;
2262
+ dataValue.datasets[0].percentage.push(this.props.data[i].percentage);
2261
2263
  dataValue.datasets[0].data.push(this.props.data[i].data);
2262
2264
  dataValue.datasets[0].backgroundColor.push(this.props.data[i].color);
2263
2265
  dataValue.datasets[0].hoverBackgroundColor.push(this.props.data[i].color + '80');
@@ -2316,7 +2318,7 @@ var PieChart = /*#__PURE__*/function (_React$Component) {
2316
2318
  },
2317
2319
  tooltips: {
2318
2320
  callbacks: {
2319
- label: function label(tooltipItem, data) {
2321
+ label: this.props.label ? this.props.label : function (tooltipItem, data) {
2320
2322
  var name = _this.props.name ? _this.props.name : data.labels[tooltipItem.index] || '';
2321
2323
  var digits = _this.props.digits >= 0 ? _this.props.digits : 2;
2322
2324