echart改变legend样式及分页

匿名 (未验证) 提交于 2019-12-02 22:56:40

legend: {
type: ‘scroll‘,
orient: ‘horizontal‘,
bottom:0,
left:‘center‘,
itemGap: 0,
itemWidth: 10,
itemHeight: 10,
textStyle:{
color: ‘#11f7f7‘
},
pageIconColor: ‘#6495ed‘, //翻页下一页的三角按钮颜色
pageIconInactiveColor: ‘#aaa‘, //翻页(即翻页到头时)
pageIconSize: 11, //翻页按钮大小
pageFormatter: ‘‘,//隐藏翻页的数字
pageButtonItemGap: -6,//翻页按钮的两个之间的间距
formatter: function (name) {
return echarts.format.truncateText(name, 6, ‘14px Microsoft Yahei‘, ‘…‘);
},//隐藏legend文字的不显示
tooltip: {
show: true
},//隐藏legend文字的不显示,开启true
padding: [5, 0],
data: [‘A区域‘,‘B区域‘,‘C区域‘,‘D区域‘]
},

原文:https://www.cnblogs.com/benmumu/p/9378377.html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!