Echarts图例常用配置(图例大小、字体、显示方式、位置等)
Echarts图例常用配置legend: {data: this.allLegend,textStyle: {//图例字体大小fontSize: 10,},//图例大小itemHeight: 10,//图例滚动显示type: 'scroll',//图例纵向显示orient: 'vertical',//图例位置right: 0,top: 30,bott
文章共411字 · 阅读需要大约2分钟
一键AI生成摘要,助你高效阅读
问答
·
Echarts图例常用配置
legend: {
data: this.allLegend,
textStyle: {
//图例字体大小
fontSize: 10,
},
//图例大小
itemHeight: 10,
//图例滚动显示
type: 'scroll',
//图例纵向显示
orient: 'vertical',
//图例位置
right: 0,
top: 30,
bottom: 30,
},
Echarts图表控制文字和指引线
series: [
{
name: 'name',
type: 'pie',
radius: [0, '30%'],
center: ['40%', '50%'],
labelLine: {
//不显示图例指引线
show: false
},
label: {
//不显示图例上的文字
show: false,
position: ['0%', '50%']
},
data: this.data,
},
...
}
更多推荐
已为社区贡献5条内容
所有评论(0)