You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
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:
But, if we increase the fontsize, the gaps between legent items does not increase, causing elements everlap:
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
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.
The text was updated successfully, but these errors were encountered: