legend: {
show: true, // 是否显示图例
type: 'scroll', // 可滚动翻页的图例。当图例数量较多时可以使用。
orient:'horizontal', // 图例列表的布局朝向。
left: '0%', // 图例组件离容器左侧的距离。
top: '0%', // 图例组件离容器上侧的距离。
itemWidth: 8, // 图例标记的图形宽度。
itemHeight: 8, // 图例标记的图形高度。
textStyle: { // 图例的公用文本样式。
color: '#333333',
fontSize: 12
},
icon: 'rect' // 图例项的 icon。
},
echarts 图例设置
最新推荐文章于 2024-07-09 15:58:44 发布