echarts legend.textStyle.width Can text overflow when maximum width is set

uemypmqf  于 4个月前  发布在  Echarts
关注(0)|答案(5)|浏览(49)

What problem does this feature solve?

Can text overflow when maximum width is set

What does the proposed API look like?

legend.textStyle.maxWidth

41ik7eoe

41ik7eoe1#

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org . Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe our mailing list .

Have a nice day! 🍵

6fe3ivhb

6fe3ivhb3#

Demo has been provided https://codepen.io/xiaolannuoyi/pen/abBNEzR?editors=0010
legend.textStyle.width is a fixed length,I want the maximum length, legend.textStyle.maxWidth ,
When the length of the text is short, it is auto, when it is long, it exceeds the maximum length, and the text overflow is displayed.

but, I want

yqyhoc1h

yqyhoc1h4#

I was also looking for this feature, hope to see it in the future, thanks!

a0zr77ik

a0zr77ik5#

How can we achieve properly aligned legend in echarts since its very ugly to have dofferent size legends oin the Echarts.

相关问题