-
Notifications
You must be signed in to change notification settings - Fork 19.8k
[Bug] series同时使用type: 'graph',type: 'lines',series ——type'graph'中配置emphasis: { focus: 'adjacency'},鼠标hover就报错,开发版本中会导致页面崩溃 #19900
Copy link
Copy link
Closed
Labels
Description
Version
5.2.2
Link to Minimal Reproduction
Steps to Reproduce
仅提供option配置,详情可打开链接的在线案例,查看**【Demo3】**
{
xAxis: {
show: false,
type: 'value',
min: 0,
max: CW,
},
yAxis: {
show: false,
type: 'value',
min: 0,
max: CH,
},
series: [
{
z: 3,
draggable: true,
// 只能缩放
roam: "scale",
// 标签
label: {
show: true,
// 定位上方
position: 'bottom',
// 字体设置
color: "black",
fontWeight: "bold"
},
data: json.nodes.map(node => {
return {
value: [node.x, node.y],
id: node.id,
name: node.name,
symbol: node.symbol,
symbolSize: node.size,
attributes: node.attributes,
itemStyle: {
color: node.color
}
}
}),
edges: json.edges,
lineStyle: {
color: 'orange',
curveness: 0,
width: 1,
type: "solid",
},
name: '马王堆一号+',
type: 'graph',
coordinateSystem: 'cartesian2d',
symbol: 'circle',
emphasis: {
focus: 'adjacency',
},
},
{
name: '线图',
type: 'lines',
// 二维直角坐标系
coordinateSystem: 'cartesian2d',
// 箭头动画效果
effect: {
show: true,
trailLength: 0,
symbol: 'circle',
color: 'red',
symbolSize: 6,
// period: 3,
constantSpeed: 60,
},
z: 1,
data: json.linesData
},
]
}Current Behavior
开发版本
series: [{ type: 'graph', emphasis: { focus: 'adjacency' }}, { type: 'lines' }]
同时使用就报错且页面崩溃
Expected Behavior
页面不崩溃即可
Environment
- OS:Windows
- Browser:Edge
- Framework:ReactAny additional comments?
No response
Reactions are currently unavailable