mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-26 09:55:52 +00:00
fix(ui): count vs percentage value shows correctly (#17568)
This commit is contained in:
parent
bb52bc779e
commit
f000be355c
@ -510,7 +510,12 @@ export const DataInsightChartCard = ({
|
|||||||
label={rightSidePanelLabel}
|
label={rightSidePanelLabel}
|
||||||
progress={round(totalValue, 2)}
|
progress={round(totalValue, 2)}
|
||||||
showProgress={isPercentageGraph}
|
showProgress={isPercentageGraph}
|
||||||
suffix={isPercentageGraph ? '%' : ''}
|
suffix={
|
||||||
|
isPercentageGraph ||
|
||||||
|
type === SystemChartType.TotalDataAssetsByTier
|
||||||
|
? '%'
|
||||||
|
: ''
|
||||||
|
}
|
||||||
target={targetValue}
|
target={targetValue}
|
||||||
/>
|
/>
|
||||||
</Col>
|
</Col>
|
||||||
@ -538,10 +543,7 @@ export const DataInsightChartCard = ({
|
|||||||
activeKeys.length ? activeKeys.includes(entity) : true
|
activeKeys.length ? activeKeys.includes(entity) : true
|
||||||
}
|
}
|
||||||
label={`${round(latestData[entity] ?? 0, 2)}${
|
label={`${round(latestData[entity] ?? 0, 2)}${
|
||||||
isPercentageGraph &&
|
isPercentageGraph ? '%' : ''
|
||||||
type !== SystemChartType.TotalDataAssetsByTier
|
|
||||||
? '%'
|
|
||||||
: ''
|
|
||||||
}`}
|
}`}
|
||||||
pluralize={
|
pluralize={
|
||||||
![
|
![
|
||||||
|
@ -445,7 +445,6 @@ export const isPercentageSystemGraph = (graph: SystemChartType) => {
|
|||||||
SystemChartType.PercentageOfDataAssetWithOwner,
|
SystemChartType.PercentageOfDataAssetWithOwner,
|
||||||
SystemChartType.PercentageOfServiceWithDescription,
|
SystemChartType.PercentageOfServiceWithDescription,
|
||||||
SystemChartType.PercentageOfServiceWithOwner,
|
SystemChartType.PercentageOfServiceWithOwner,
|
||||||
SystemChartType.TotalDataAssetsByTier,
|
|
||||||
].includes(graph);
|
].includes(graph);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user