From 43fe0cd62ef20ce3c3780af785406b88989fc813 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 19 Apr 2020 15:48:05 +0900 Subject: [PATCH] feat(pages): Improve chart --- src/client/scripts/aoiscript/evaluator.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/client/scripts/aoiscript/evaluator.ts b/src/client/scripts/aoiscript/evaluator.ts index d34ab3dc26..b7b141e675 100644 --- a/src/client/scripts/aoiscript/evaluator.ts +++ b/src/client/scripts/aoiscript/evaluator.ts @@ -126,14 +126,16 @@ export class ASEvaluator { ...(opts.value.get('type').value === 'radar' ? { scale: { 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: { yAxes: [{ 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, } }] }