1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-15 14:49:09 +00:00

fix chart setting bug (#6983)

This commit is contained in:
Michael An
2024-11-01 15:15:13 +08:00
committed by GitHub
parent cba560721d
commit 4e22e75dcf
2 changed files with 12 additions and 8 deletions

View File

@@ -86,7 +86,8 @@ class StatisticChart extends React.Component {
}
},
scales: {
y: [{
y: {
display: true,
beginAtZero: true,
suggestedMax: suggestedMaxNumbers,
ticks: {
@@ -97,12 +98,13 @@ class StatisticChart extends React.Component {
return value;
}
}
}],
x: [{
},
x: {
display: true,
ticks: {
maxTicksLimit: 20
}
}]
}
}
};
this.setState({