@publishfx/publish-chart 2.1.29 → 2.1.30
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.
|
@@ -294,21 +294,24 @@ function fillMissingIndicator(baseItems, safeTitle, isCompare, isGroup = false)
|
|
|
294
294
|
name: indicatorId,
|
|
295
295
|
value: '-',
|
|
296
296
|
x: safeTitle,
|
|
297
|
-
color: color
|
|
297
|
+
color: color,
|
|
298
|
+
dataType: 'manual'
|
|
298
299
|
});
|
|
299
300
|
if (!baseItems.find((item)=>item.indicatorId === indicatorId && item.name === indicatorId + '_compare')) baseItems.push({
|
|
300
301
|
indicatorId: indicatorId,
|
|
301
302
|
name: indicatorId + '_compare',
|
|
302
303
|
tipType: 'compareline',
|
|
303
304
|
value: '-',
|
|
304
|
-
x: safeTitle
|
|
305
|
+
x: safeTitle,
|
|
306
|
+
dataType: 'manual'
|
|
305
307
|
});
|
|
306
308
|
if (!baseItems.find((item)=>item.indicatorId === indicatorId && item.name === indicatorId + '_change')) baseItems.push({
|
|
307
309
|
indicatorId: indicatorId,
|
|
308
310
|
name: indicatorId + '_change',
|
|
309
311
|
isChange: true,
|
|
310
312
|
value: '-',
|
|
311
|
-
x: safeTitle
|
|
313
|
+
x: safeTitle,
|
|
314
|
+
dataType: 'manual'
|
|
312
315
|
});
|
|
313
316
|
}
|
|
314
317
|
});
|
|
@@ -14,7 +14,7 @@ const G2CompareTooltip = ({ isGroupBar = false, title, items, safeIndicatorMap,
|
|
|
14
14
|
/*#__PURE__*/ jsx("div", {
|
|
15
15
|
children: title
|
|
16
16
|
}),
|
|
17
|
-
items?.map(({ color, value, isChange, compareTime, indicatorId, name, percent, hidden, isCombine }, index)=>{
|
|
17
|
+
items?.map(({ color, value, isChange, compareTime, indicatorId, name, percent, hidden, isCombine, dataType }, index)=>{
|
|
18
18
|
if (isCombine) combineIndicatorId = indicatorId ?? "";
|
|
19
19
|
let isFirst = false;
|
|
20
20
|
if (0 === index) auxiIndicatorId = indicatorId ?? "";
|
|
@@ -22,6 +22,7 @@ const G2CompareTooltip = ({ isGroupBar = false, title, items, safeIndicatorMap,
|
|
|
22
22
|
isFirst = true;
|
|
23
23
|
uniqueColors.push(color);
|
|
24
24
|
}
|
|
25
|
+
if (combineIndicatorId === auxiIndicatorId && '-' === value && 'manual' === dataType) return null;
|
|
25
26
|
return !hidden && /*#__PURE__*/ jsxs("div", {
|
|
26
27
|
style: {
|
|
27
28
|
display: "flex",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@publishfx/publish-chart",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.30",
|
|
4
4
|
"description": "A React chart component library for the Publish platform, including BarChart, LineChart, BarLineChart and other visualization components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|