Skip to content

Commit

Permalink
rm undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Map1en committed Jan 21, 2022
1 parent c97f46d commit 3e2839a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/axis/AxisBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ const builders: Record<'axisLine' | 'axisTickLabel' | 'axisName', AxisElementsBu
text: name,
font: textFont,
overflow: 'truncate',
width: maxWidth || +textStyleModel.get('width') || undefined,
width: maxWidth || +textStyleModel.get('width'),
ellipsis,
fill: textStyleModel.getTextColor()
|| axisModel.get(['axisLine', 'lineStyle', 'color']) as ColorString,
Expand Down

0 comments on commit 3e2839a

Please sign in to comment.