Skip to content

Commit

Permalink
make compact
Browse files Browse the repository at this point in the history
  • Loading branch information
Map1en committed Dec 10, 2021
1 parent c06b8eb commit c97f46d
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 || Number(textStyleModel.get('width')) || undefined,
width: maxWidth || +textStyleModel.get('width') || undefined,
ellipsis,
fill: textStyleModel.getTextColor()
|| axisModel.get(['axisLine', 'lineStyle', 'color']) as ColorString,
Expand Down

0 comments on commit c97f46d

Please sign in to comment.