diff --git a/src/utils.ts b/src/utils.ts index 301447b..378d615 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -121,13 +121,13 @@ const createOptions = { const { chartType, series, chartData = [] } = context; let legendOption: any = { show: true, + bottom: 10, data: chartType === 'pie' ? chartData.map(([name]: any) => name) : series.map((comp: any) => { return comp.props.name; }), - bottom: 0 }; if (chartType === 'pie') {