Skip to content

tooltip报错: Cannot read property 'getBoundingRect' of undefined #236

@zhuzhuxingtianxia

Description

@zhuzhuxingtianxia

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

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions