mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-30 18:19:07 +01:00
feat(pages): Improve chart
This commit is contained in:
parent
e22a296dc7
commit
43fe0cd62e
1 changed files with 4 additions and 2 deletions
|
@ -126,14 +126,16 @@ export class ASEvaluator {
|
||||||
...(opts.value.get('type').value === 'radar' ? {
|
...(opts.value.get('type').value === 'radar' ? {
|
||||||
scale: {
|
scale: {
|
||||||
ticks: {
|
ticks: {
|
||||||
beginAtZero: opts.value.has('begin_at_zero') ? opts.value.get('begin_at_zero') : false
|
min: opts.value.has('min') ? opts.value.get('min').value : undefined,
|
||||||
|
max: opts.value.has('max') ? opts.value.get('max').value : undefined,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} : {
|
} : {
|
||||||
scales: {
|
scales: {
|
||||||
yAxes: [{
|
yAxes: [{
|
||||||
ticks: {
|
ticks: {
|
||||||
beginAtZero: opts.value.has('begin_at_zero') ? opts.value.get('begin_at_zero') : false
|
min: opts.value.has('min') ? opts.value.get('min').value : undefined,
|
||||||
|
max: opts.value.has('max') ? opts.value.get('max').value : undefined,
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue