-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Comments
fix(label): propagate the lineOverflow label option. close #14506#17231
fix(label): propagate the lineOverflow label option. close #14506 #17231marmelo wants to merge 1 commit intoapache:master from
Conversation
Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.
Document changes are required in this PR. Please also make a PR to apache/echarts-doc for document changes and update the issue id in the PR description. When the doc PR is merged, the maintainers will remove the PR: awaiting doc label.
Hi @plainheart, I agree the PRs are similar but they are old and eventually been closed.
Can you please advise how to push this change through?
About ellipsis, if we try to override the ellipsis string (... by default) also does not work.
The fix is similar, the ellipsis option is not being propagated to ZRender.
I can add this fix to the current PR or create a new one.
Also, lineOverflow: 'ellipsis' config only works if we have a single row of text.
If we have more than one row (like the example in this issue description) the ellipsis will not be rendered.
This is a missing feature of ZRender, not an ECharts issue.
This PR has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this PR. We are sorry for this but 2 years is a long time and the code base has been changed a lot. Thanks for your contribution anyway.
This PR has been automatically closed because it has not had recent activity. Sorry for that and we are looking forward to your next contribution.
Uh oh!
There was an error while loading. Please reload this page.
Brief Information
This pull request is in the type of:
What does this PR do?
Allows to truncate labels that overflow multiple lines by propagating the
lineOverflowlabel option to ZRender.Fixed issues
Details
Before: What was the problem?
It was not possible to limit the number of lines in labels.
2022年06月17日-003410_685x367_scrot
After: How does it behave after the fixing?
Please assume the following configuration:
2022年06月17日-003359_683x343_scrot
Please check
axisLabel-lineOverflow.htmlvisual test case for more details.Document Info
One of the following should be checked.
Misc
ZRender Changes
Related test cases or examples to use the new APIs
axisLabel-lineOverflow.htmlwas added.Others
Merging options
Other information