From 59db3b59970a5f9ffee43a37e81afcc3113148f0 Mon Sep 17 00:00:00 2001 From: hustcc Date: Wed, 1 Apr 2020 20:53:16 +0800 Subject: [PATCH] fix(#2173): fix legend overlap when in same direction --- src/chart/controller/legend.ts | 8 ++++++- tests/bugs/2173-spec.ts | 44 ++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 tests/bugs/2173-spec.ts diff --git a/src/chart/controller/legend.ts b/src/chart/controller/legend.ts index 24420ee085..8833bf758d 100644 --- a/src/chart/controller/legend.ts +++ b/src/chart/controller/legend.ts @@ -43,6 +43,8 @@ function getDirection(legendOption: any): DIRECTION { export default class Legend extends Controller