fix(style): top users bar name too long

This commit is contained in:
jialin
2025-06-27 16:38:19 +08:00
parent 47a5ef915b
commit abdd5e08a6
3 changed files with 17 additions and 2 deletions
+12 -1
View File
@@ -41,7 +41,18 @@ const BarChart: React.FC<ChartProps> = (props) => {
formatter: labelFormatter
}
},
yAxis,
yAxis: {
...yAxis,
axisLabel: {
...yAxis.axisLabel,
formatter(value: string) {
if (value.length > 10) {
return `${value.slice(0, 10)}...`;
}
return value;
}
}
},
legend: {
...legend,
data: []