From b4c98198ca5b33b5d8eaab513047d2331dba0dd8 Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Thu, 5 Mar 2020 18:36:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=A0=E9=94=99=E4=BA=86=E5=AF=B9=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/Chart.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderers/Chart.tsx b/src/renderers/Chart.tsx index 55c446bc..ebea5a81 100644 --- a/src/renderers/Chart.tsx +++ b/src/renderers/Chart.tsx @@ -206,7 +206,8 @@ export class Chart extends React.Component { config = new Function('return ' + config)(); } try { - onDataFilter && (config = onDataFilter(config, this.echarts) || config); + onDataFilter && + (config = onDataFilter(config, (window as any).echarts) || config); } catch (e) { console.warn(e); }