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 2018/11/26 03:16:51 UTC

[GitHub] yizhengfeng-jj commented on issue #9465: legend 始终为一行显示

yizhengfeng-jj commented on issue #9465: legend 始终为一行显示
URL: https://github.com/apache/incubator-echarts/issues/9465#issuecomment-441507360
 
 
   设置为一行的话,从理论上来讲第一个想法是让图例尽量小,想法如下
   1:改变字体大小
   2:减少图例之间的间距
   option = {
    legend: {
     itemGap: '', 图例之间的间距,
     normal: {
         textStyle: {
          fontSize:'' // 改变字体大小
   
    }
     }
   }
   
   }
   最后不行 跟设计商量,legend一行放不下的话,可以设置type: ‘scroll’,超出部分会滚动,也是在一行
   option = {
    legend: {
   
    type:'scroll',
     itemGap: '', 图例之间的间距,
     normal: {
         textStyle: {
       
   
    }
     }
   }
   
   }
   

----------------------------------------------------------------
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