nuxeo-development-framework 0.0.6 → 0.0.7

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.
@@ -14524,7 +14524,7 @@
14524
14524
  var dataArr = [];
14525
14525
  var labels = [];
14526
14526
  data.data.data.forEach(function (item, index) {
14527
- backgroundColor.push("#2e62df");
14527
+ backgroundColor.push('#2e62df');
14528
14528
  dataArr.push(item.count);
14529
14529
  });
14530
14530
  labels = data.data.data.map(function (item, index) {
@@ -14603,19 +14603,28 @@
14603
14603
  type: 'outlabeledPie',
14604
14604
  data: chartData,
14605
14605
  options: {
14606
- // title: {
14607
- // display: true,
14608
- // text: prefix.length > 0 ? `${this.translate.instant(prefix)}` : '',
14609
- // },
14606
+ layout: {
14607
+ padding: {
14608
+ top: 33,
14609
+ },
14610
+ },
14610
14611
  zoomOutPercentage: 55,
14611
14612
  plugins: {
14612
14613
  legend: false,
14613
14614
  outlabels: {
14614
14615
  lineWidth: 0.8,
14615
14616
  lineColor: '#b4bac6',
14616
- text: '%l %p',
14617
+ text: function (context) {
14618
+ var index = context.dataIndex;
14619
+ var label = context.labels[index];
14620
+ var num = context.percent * 100;
14621
+ var text = ___namespace.truncate(label, {
14622
+ length: 24,
14623
+ }) + " " + num.toFixed(0) + "%";
14624
+ return text;
14625
+ },
14617
14626
  color: 'white',
14618
- stretch: 25,
14627
+ stretch: 20,
14619
14628
  font: {
14620
14629
  resizable: true,
14621
14630
  minSize: 12,