[WEB-3808] fix: replaced the profile charts with propel components #6892

This commit is contained in:
Akshita Goyal 2025-04-09 14:50:23 +05:30 committed by GitHub
parent 144c793e9e
commit 670134562f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 72 additions and 78 deletions

View file

@ -56,7 +56,6 @@ export const BarChart = React.memo(<K extends string, T extends string>(props: T
dataKey={bar.key}
stackId={bar.stackId}
opacity={!!activeLegend && activeLegend !== bar.key ? 0.1 : 1}
fill={bar.fill}
shape={(shapeProps: any) => {
const showTopBorderRadius = bar.showTopBorderRadius?.(shapeProps.dataKey, shapeProps.payload);
const showBottomBorderRadius = bar.showBottomBorderRadius?.(shapeProps.dataKey, shapeProps.payload);
@ -64,6 +63,7 @@ export const BarChart = React.memo(<K extends string, T extends string>(props: T
return (
<CustomBar
{...shapeProps}
fill={typeof bar.fill === "function" ? bar.fill(shapeProps.payload) : bar.fill}
stackKeys={stackKeys}
textClassName={bar.textClassName}
showPercentage={bar.showPercentage}