1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-04-27 11:01:14 +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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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({

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({