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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
