fix: image seed do no clear
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user