sea-chart 2.0.45 → 2.0.47

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.
@@ -21,7 +21,7 @@
21
21
  max-width: 160px;
22
22
  white-space: nowrap;
23
23
  overflow: hidden;
24
- line-height: 14px;
24
+ line-height: 1.4;
25
25
  text-overflow: ellipsis;
26
26
  }
27
27
 
@@ -53,7 +53,7 @@
53
53
  min-width: 80px;
54
54
  white-space: nowrap;
55
55
  overflow: hidden;
56
- line-height: 12px;
56
+ line-height: 1.4;
57
57
  text-overflow: ellipsis;
58
58
  }
59
59
 
@@ -659,13 +659,16 @@ BaseUtils.formatPieChartData = (data, chart, tables, currentTheme, useColumnColo
659
659
  let rows = [];
660
660
  data.forEach((item, index) => {
661
661
  const value = item.value;
662
- item.name = item.name + ' ';
662
+ const formattedItem = {
663
+ ...item,
664
+ name: String(item.name) + ' '
665
+ };
663
666
  if (value >= threshold) {
664
- item.percent = String(Number.parseFloat(value / sum * 100).toFixed(1)) + '%';
665
- const color = _BaseUtils.getPieColor(column, index, item, currentTheme, useColumnColor);
666
- item.color = color;
667
- colorMap[item.name.trim()] = color;
668
- filteredData.push(item);
667
+ formattedItem.percent = String(Number.parseFloat(value / sum * 100).toFixed(1)) + '%';
668
+ const color = _BaseUtils.getPieColor(column, index, formattedItem, currentTheme, useColumnColor);
669
+ formattedItem.color = color;
670
+ colorMap[formattedItem.name.trim()] = color;
671
+ filteredData.push(formattedItem);
669
672
  } else {
670
673
  rows.push(...item.rows);
671
674
  filteredItems.push(item);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sea-chart",
3
- "version": "2.0.45",
3
+ "version": "2.0.47",
4
4
  "main": "./dist/index.js",
5
5
  "dependencies": {
6
6
  "@dnd-kit/core": "^6.1.0",