diff --git a/src/label/labelStyle.ts b/src/label/labelStyle.ts index 622d574bed..77e01b2638 100644 --- a/src/label/labelStyle.ts +++ b/src/label/labelStyle.ts @@ -417,6 +417,10 @@ function setTextStyleCommon( if (overflow) { textStyle.overflow = overflow; } + const lineOverflow = textStyleModel.get('lineOverflow'); + if (lineOverflow) { + textStyle.lineOverflow = lineOverflow; + } const margin = textStyleModel.get('minMargin'); if (margin != null) { textStyle.margin = margin; diff --git a/test/axisLabel-lineOverflow.html b/test/axisLabel-lineOverflow.html new file mode 100644 index 0000000000..4c868a5949 --- /dev/null +++ b/test/axisLabel-lineOverflow.html @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + +
+ + + + \ No newline at end of file