tooltip配置如下:
tooltip: {
trigger: 'axis',
formatter: '{c}',
showContent: false,
axisPointer: {
lineStyle: {
color: '#000',
type: 'dotted',
},
},
},
数据改变更新图表:
chartRef.current?.resize({
width: w,
height: chartHeight + option.grid.bottom,
});
option.series = [
getLineSerie(data, config),
];
option.xAxis.data = xAxisData;
chartRef.current?.setOption(option);
报错:
(NOBRIDGE) ERROR TypeError: Cannot read property 'getBoundingRect' of undefined
TooltipRichContent.js 的getSize
