fix: image seed do no clear

This commit is contained in:
jialin
2025-12-25 17:57:11 +08:00
parent 9b25cc51e4
commit 725409a576
4 changed files with 29 additions and 32 deletions
+13 -15
View File
@@ -55,18 +55,17 @@ const BarChart: React.FC<ChartProps & { maxItems?: number }> = (props) => {
show: true,
overflow: 'truncate',
width: 75,
ellipsis: '...',
margin: 12,
formatter(value: string, index: number) {
return `{a|${index + 1}}`;
},
rich: {
a: {
fontWeight: 500,
fontSize: 14,
color: token?.colorTextSecondary
}
}
ellipsis: '...'
// formatter(value: string, index: number) {
// return `{a|${index + 1}}`;
// },
// rich: {
// a: {
// fontWeight: 500,
// fontSize: 14,
// color: token?.colorTextSecondary
// }
// }
}
},
legend: {
@@ -82,9 +81,9 @@ const BarChart: React.FC<ChartProps & { maxItems?: number }> = (props) => {
type: 'bar',
barWidth: 20,
stack: 'Ad',
barGap: '20%',
barGap: '30%',
label: {
show: true,
show: false,
formatter(params: any) {
if (params.seriesIndex === 0) {
return `{value|${params.name}}`;
@@ -173,7 +172,6 @@ const BarChart: React.FC<ChartProps & { maxItems?: number }> = (props) => {
) : (
<Chart
height={height}
chartHeight={typeof height === 'number' ? height - 10 : undefined}
options={dataOptions}
width={width || '100%'}
></Chart>