使用echart设置title的时候,需要在某个特定字符高亮,根据echarts 5.5.0的api,我的设置如下:
title: {
text: [
`highLight|关键词${search_text}`,
'气泡统计图'
].join(''),
textStyle: {
rich: {
highLight: {
color: 'red'
}
}
}
},

最后结果
