From f8262a2efa0d876dd9395cb4d1db208b42eb80c9 Mon Sep 17 00:00:00 2001 From: zqlu Date: Sat, 23 May 2020 00:33:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BE=E4=BE=8B=E5=BA=94=E4=BA=8E?= =?UTF-8?q?=E5=9D=90=E6=A0=87=E8=BD=B4=E5=AF=B9=E9=BD=90=20(#2488)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: legend align with axis * fix: prevent ts error --- src/chart/controller/legend.ts | 2 +- tests/unit/chart/controller/legend-spec.ts | 176 +++++++++++---------- 2 files changed, 97 insertions(+), 81 deletions(-) diff --git a/src/chart/controller/legend.ts b/src/chart/controller/legend.ts index 59bbb0434a..8fe97e0827 100644 --- a/src/chart/controller/legend.ts +++ b/src/chart/controller/legend.ts @@ -121,7 +121,7 @@ export default class Legend extends Controller