You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/07/06 11:22:25 UTC
[GitHub] [echarts] ArturCapraro opened a new issue, #17326: [Bug] Server Side Rendering - Legend spacing does not increase when legend font size does
ArturCapraro opened a new issue, #17326:
URL: https://github.com/apache/echarts/issues/17326
### Version
5.3.3
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
Increase the legend font size and try to create an svg with server side rendering.
### Current Behavior
When we get the server side rendered image with the default font size, the image show fine:
`
"legend": {
"type": "plain",
"orient": "horizontal",
"left": 60,
"bottom": 10,
"icon": "roundRect",
"selectedMode": false,
"itemGap": 20,
"data": [
"this is element 1",
"this is element 2",
"this is element 3",
"other elements",
"other elements",
"other elements"
]
},
`

But, if we increase the fontsize, the gaps between legent items does not increase, causing elements everlap:
`
"legend": {
"type": "plain",
"orient": "horizontal",
"left": 60,
"bottom": 10,
"icon": "roundRect",
"selectedMode": false,
"itemGap": 20,
"textStyle": { "fontSize": 15 },
"data": [
"this is element 1",
"this is element 2",
"this is element 3",
"other elements",
"other elements",
"other elements"
]
},
`
The only difference here from the beginning is ` "textStyle": { "fontSize": 15 },`.

### Expected Behavior
Expect a correct spacing between elements in legend when fontsize increase avoiding overlap.
### Environment
```markdown
- OS: Ubuntu 20.04.4 LTS
- Browser: Chrome
- Node.js: v18.1.0
```
### Any additional comments?
This only occurs with server side generating. In the front-end with javascript and the same options the charts are generating correctly even with font-size increase.
--
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
[GitHub] [echarts] plainheart closed issue #17326: [Bug] Server Side Rendering - Legend spacing does not increase when legend font size does
Posted by GitBox <gi...@apache.org>.
plainheart closed issue #17326: [Bug] Server Side Rendering - Legend spacing does not increase when legend font size does
URL: https://github.com/apache/echarts/issues/17326
--
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
[GitHub] [echarts] davidjr82 commented on issue #17326: [Bug] Server Side Rendering - Legend spacing does not increase when legend font size does
Posted by GitBox <gi...@apache.org>.
davidjr82 commented on issue #17326:
URL: https://github.com/apache/echarts/issues/17326#issuecomment-1288813902
I can confirm this issue is happening.
The font-size is not taken into account when generating SSR svg files following the instructions in docs.
https://echarts.apache.org/handbook/en/how-to/cross-platform/server
--
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