方法一:配置 graphic
https://www.w3cschool.cn/echarts_tutorial/echarts_tutorial-3u872dym.html
实例代码:
option = {
graphic: [
{
type: 'group',
left: 'center',
bottom: 130,
children: [
{
type: 'rect',
z: 100,
left: 'center',
top: 'middle',
shape: {
width: 190,
height: 90
},
style: {
fill: '#fff',
stroke: '#555',
lineWidth: 2,
shadowBlur: 8,
shadowOffsetX: 3,
shadowOffsetY: 3,
shadowColor: 'rgba(0,0,0,0.3)'
}
},
{
type: 'text',
z: 100,
left: 'center',
top: 'middle',
style: {
fill: '#333'