You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "okatz123 (via GitHub)" <gi...@apache.org> on 2024/05/01 10:14:43 UTC
[I] [Bug] Unable to set multiple legend rows, when legend type is scroll. [echarts]
okatz123 opened a new issue, #19886:
URL: https://github.com/apache/echarts/issues/19886
### Version
5.4.3
### Link to Minimal Reproduction
https://codesandbox.io/p/sandbox/pie-with-scrollable-legend-dqj2r2?file=%2Findex.js
### Steps to Reproduce
I use your playground
https://echarts.apache.org/examples/en/editor.html?c=pie-legend&edit=1&reset=1
and change legend to have an unknown orient string. I also set width and height:
` legend: {
type: 'scroll',
orient: 'veeertical',
right: 10,
bottom: 20,
width: 400,
height: 200,
data: data.legendData
},`
I can get the legend behavior I am looking for - a multi-line legend with paging.

In code it is not possible since the only allowed orient values are 'vertical'/'horizontal', and the code doesn't compile.
Is there any valid way to achieve this legend behavior?
### Current Behavior
A single row of legend items or a single column of items, that can become very long.
When using 'plain' type the legend items overflow.
My legend includes a large number of items, and neither one of the solutions fit.


### Expected Behavior
To be able to achieve the same behavior as in echarts playground.
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
--
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: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] Unable to set multiple legend rows, when legend type is scroll. [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19886:
URL: https://github.com/apache/echarts/issues/19886#issuecomment-2088876998
> I can get the legend behavior I am looking for - a multi-line legend with paging.
Well done, you got it working. Eventually ```orient: 'none'``` should be added to the API documentation.
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] Unable to set multiple legend rows, when legend type is scroll. [echarts]
Posted by "wangjing199196ok (via GitHub)" <gi...@apache.org>.
wangjing199196ok commented on issue #19886:
URL: https://github.com/apache/echarts/issues/19886#issuecomment-3153004300
is this bug fixed?
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] Unable to set multiple legend rows, when legend type is scroll. [echarts]
Posted by "okatz123 (via GitHub)" <gi...@apache.org>.
okatz123 commented on issue #19886:
URL: https://github.com/apache/echarts/issues/19886#issuecomment-2089744013
In theory it is working, but when using typescript code will not compile. 'none' should be added to type LayoutOrient
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org