marmelo opened a new pull request, #17231: URL: https://github.com/apache/echarts/pull/17231
## Brief Information This pull request is in the type of: - [x] bug fixing - [ ] new feature - [ ] others ### What does this PR do? Allows to truncate labels that overflow multiple lines by propagating the `lineOverflow` label option to ZRender. ### Fixed issues - #14506 - #15248 ## Details ### Before: What was the problem? It was not possible to limit the number of lines in labels.  ### After: How does it behave after the fixing? Please assume the following configuration: ```js { ... xAxis: { ... axisLabel: { ... width: 80, // both width and height are required height: 30, // twice the line height, so only 2 lines are displayed lineHeight: 15, overflow: 'break', lineOverflow: 'truncate' // the option that is now being propagated } } } ```  Please check `axisLabel-lineOverflow.html` visual test case for more details. ## Document Info One of the following should be checked. - [ ] This PR doesn't relate to document changes - [x] The document should be updated later - [ ] The document changes have been made in apache/echarts-doc#xxx ## Misc ### ZRender Changes - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx). ### Related test cases or examples to use the new APIs - Visual test case `axisLabel-lineOverflow.html` was added. ## Others ### Merging options - [x] Please squash the commits into a single one when merging. ### Other information -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
