首页 > 其他 > 详细

echart改变legend样式及分页

时间:2018-07-27 16:42:07      阅读:1275      评论:0      收藏:0      [点我收藏+]

 

技术分享图片

 

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区域‘]
},

echart改变legend样式及分页

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!