在echarts 图表里。右上角的公式,使用的是属性 graphic
graphic:{
type: 'group',
right: 40,
top:0,
children: [{
type: 'text',
left: 0,
top: 10,
style: {
fill: '#333',
text: '左边=',
font: '10px Microsoft YaHei'
}
},
{
type: 'text',
left:40,
top: 0,
style: {
fill: '#333',
text: ['右上','───','右下'].join('\n'),
font: '10px Microsoft YaHei',
}
}]
}
};