You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/01/28 04:30:57 UTC

[GitHub] pathtolearn commented on issue #7887: Positioning vertical legends dynamically left/right to a chart

pathtolearn commented on issue #7887: Positioning vertical legends dynamically left/right to a chart
URL: https://github.com/apache/incubator-echarts/issues/7887#issuecomment-457995988
 
 
   > You will have the same problem if you have horizontal legend. I always use horizontal legend and with scroll type. This way the legend will not overlay the chart BUT you will not have all the legend options available at once.
   > 
   > Code:
   > 
   > ```js
   > legend: {
   >     type: 'scroll',
   >     orient: 'horizontal'
   > }
   > ```
   > 
   > ![capturar](https://user-images.githubusercontent.com/20660551/37279079-9d6a8a86-25e1-11e8-8188-296d28cbdbf5.PNG)
   > 
   > As you can see in the image, you will always have the same height for the legend and, at least form me, is easier to manipulate. Despite this, I think you are right. This is just the way I use the legend in order to avoid your problem.
   
   Thanks, now my graph looks much better.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org