let option = {
title: [
{
text: '活动次数', // 左侧标题内容
left: '0', // 左侧标题位置,可以是 'left'、'center'、'right'
top: '15', // 左侧标题顶部对齐方式,可以是 'top'、'middle'、'bottom'
textStyle: {
color: '#33a7ff', // 标题文字颜色
fontSize: 12, // 标题文字大小
fontWeight: 400,
}
},
{
text: '幼儿参与次数', // 右侧标题内容
right: '0', // 右侧标题位置,可以是 'left'、'center'、'right'
top: '15', // 右侧标题顶部对齐方式,可以是 'top'、'middle'、'bottom'
textStyle: {
color: '#f59a23', // 标题文字颜色
fontSize: 12, // 标题文字大小
fontWeight: 400,
}
}
],
...剩下的代码
在title里写两个标题 然后左右定位 over