annotations:[
{
id: 'nameId',
type: 'text',
position: ['50%', '50%'],
content: '标题',
style: {
textAlign: 'center',
textBaseline: 'bottom',
fontSize: 26,
fontWeight: 600,
fill: '#595959',
},
},
{
id: 'contentId',
type: 'text',
position: ['50%', '50%'],
offsetY: 4,
content: '内容',
style: {
textAlign: 'center',
textBaseline: 'top',
fontSize: 16,
fontWeight: 600,
fill: '#595959',
},
},
]
state.myPlot.removeAnnotations([{ id: 'nameId' }, { id: 'contentId' }]);