fix(style): top users bar name too long
This commit is contained in:
@@ -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: []
|
||||
|
||||
Reference in New Issue
Block a user