Skip to content

Commit

Permalink
fix(Legend): correct default bottom margin
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenOutman committed Jun 16, 2022
1 parent 9e157c8 commit 8607684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 8607684

Please sign in to comment.