mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-26 01:46:26 +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}
|
||||
progress={round(totalValue, 2)}
|
||||
showProgress={isPercentageGraph}
|
||||
suffix={isPercentageGraph ? '%' : ''}
|
||||
suffix={
|
||||
isPercentageGraph ||
|
||||
type === SystemChartType.TotalDataAssetsByTier
|
||||
? '%'
|
||||
: ''
|
||||
}
|
||||
target={targetValue}
|
||||
/>
|
||||
</Col>
|
||||
@ -538,10 +543,7 @@ export const DataInsightChartCard = ({
|
||||
activeKeys.length ? activeKeys.includes(entity) : true
|
||||
}
|
||||
label={`${round(latestData[entity] ?? 0, 2)}${
|
||||
isPercentageGraph &&
|
||||
type !== SystemChartType.TotalDataAssetsByTier
|
||||
? '%'
|
||||
: ''
|
||||
isPercentageGraph ? '%' : ''
|
||||
}`}
|
||||
pluralize={
|
||||
![
|
||||
|
@ -445,7 +445,6 @@ export const isPercentageSystemGraph = (graph: SystemChartType) => {
|
||||
SystemChartType.PercentageOfDataAssetWithOwner,
|
||||
SystemChartType.PercentageOfServiceWithDescription,
|
||||
SystemChartType.PercentageOfServiceWithOwner,
|
||||
SystemChartType.TotalDataAssetsByTier,
|
||||
].includes(graph);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user