fix(pages): Fix chart type detection

This commit is contained in:
syuilo 2020-04-19 09:09:38 +09:00
parent 8d39283d46
commit 72271d905d

View file

@ -123,7 +123,7 @@ export class ASEvaluator {
chartArea: { chartArea: {
backgroundColor: '#fff' backgroundColor: '#fff'
}, },
...(opts.value.get('type').value === 'rader' ? { ...(opts.value.get('type').value === 'radar' ? {
scale: { scale: {
ticks: { ticks: {
beginAtZero: opts.value.has('begin_at_zero') ? opts.value.get('begin_at_zero') : false beginAtZero: opts.value.has('begin_at_zero') ? opts.value.get('begin_at_zero') : false