1.更改图例文字 字体大小 位置
legend: {
textStyle: {
fontSize: 10,//字体大小
color: '#ffffff'//字体颜色
},
orient: "horizontal",
// 更改位置
x: 'right',
// 上,右,下,左
padding: [10, 0, 40, 10],
itemWidth: 30,
},
2,更改图的位置 大小
grid: {
left: '0',
right: '10%',
top: '20%',
containLabel: true,
bottom: "10%"
},
3.设置文字颜色 文字是否显示
axisLabel: {
// 设置文字是否显示
show: false,
// 设置文字颜色
// textStyle: {
// color: "none",
// },
},
4.更改柱状图宽度
series: [
{
barWidth: 10, // 柱子宽度
name: '新增用户数量',
type: 'bar',
stack: 'account',
data: [320, 302, 120, 100, 540, 123, 345, 667, 333, 122, 211, 99],
},
]