Skip to content

Commit

Permalink
refactor: apply axisLabel.show from thrme
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenOutman committed Jun 14, 2022
1 parent 0faf107 commit 6f8135e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,6 @@ const createOptions = {
return _merge(
{
boundaryGap: !!series.find((comp: any) => comp.type[symbols.typeKey] === symbols.bars),
axisLabel: transformTextOption(axisLabel, {
show: true
}),
splitLine: {
show: false
},
Expand All @@ -239,6 +236,11 @@ const createOptions = {
color: '#575757'
}
},
axisLabel
? {
axisLabel: transformTextOption(axisLabel)
}
: {},
rest
);
}
Expand All @@ -262,9 +264,6 @@ const createOptions = {
axisLine: {
show: false
},
axisLabel: transformTextOption(axisLabel, {
show: true
}),
splitLine: _merge(
{
show: !!splitLine
Expand All @@ -278,6 +277,11 @@ const createOptions = {
color: '#575757'
}
},
axisLabel
? {
axisLabel: transformTextOption(axisLabel)
}
: {},
rest
);
}
Expand Down

0 comments on commit 6f8135e

Please sign in to comment.