fix: chart flicker

This commit is contained in:
jialin
2026-04-29 09:29:04 +08:00
committed by jialin
parent 26880b4612
commit 3144328874
3 changed files with 17 additions and 3 deletions
@@ -180,10 +180,14 @@ const BarChart: React.FC<BarChartProps> = (props) => {
}
},
legend: {
type: 'scroll',
itemWidth: 8,
itemHeight: 8,
itemGap: 12,
textStyle: { color: token.colorTextTertiary },
pageTextStyle: { color: token.colorTextTertiary },
pageIconColor: token.colorTextTertiary,
pageIconInactiveColor: token.colorTextDisabled,
bottom: 0,
data: legendData,
show: !!legendData?.length