1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-14 13:13:22 +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: { scales: {
y: [{ y: {
display: true,
beginAtZero: true, beginAtZero: true,
suggestedMax: suggestedMaxNumbers, suggestedMax: suggestedMaxNumbers,
ticks: { ticks: {
@ -97,12 +98,13 @@ class StatisticChart extends React.Component {
return value; return value;
} }
} }
}], },
x: [{ x: {
display: true,
ticks: { ticks: {
maxTicksLimit: 20 maxTicksLimit: 20
} }
}] }
} }
}; };
this.setState({ this.setState({

View File

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