Closed hadg closed 5 years ago
In this issue, I have provided information with: 在这个 issue 中我提供了以下信息:
关系图在大量节点的时候使用edgeSymbol会导致标签虚化
标签正常显示
标签被虚化
官方的例子(http://echarts.baidu.com/examples/editor.html?c=graph-npm)
正常显示:
加入edgeSymbol: ['none', 'arrow']属性后标签虚化了:
修改后的代码:
$.getJSON('data/asset/data/npmdepgraph.min10.json', function (json) { myChart.hideLoading(); myChart.setOption(option = { title: { text: 'NPM Dependencies' }, animationDurationUpdate: 1500, animationEasingUpdate: 'quinticInOut', series : [ { type: 'graph', layout: 'none', // progressiveThreshold: 700, edgeSymbol: ['none', 'arrow'], data: json.nodes.map(function (node) { return { x: node.x, y: node.y, id: node.id, name: node.label, symbolSize: node.size, itemStyle: { normal: { color: node.color } } }; }), edges: json.edges.map(function (edge) { return { source: edge.sourceID, target: edge.targetID }; }), label: { emphasis: { position: 'right', show: true } }, roam: true, focusNodeAdjacency: true, lineStyle: { normal: { width: 0.5, curveness: 0.3, opacity: 0.7 } } } ] }, true); });
ECharts version;ECharts 版本: {4.2.0-rc.2}
[ ] It happens only on certain browsers or operating systems. 对于特定浏览器或操作系统才会出现的问题,请提供相应环境信息:{BROWSER_VERSION_OR_OS_INFORMATION_HERE}
遇到同样问题。 另外能否增加一个功能, link 也可以被筛选。目前没有此功能
It has been fixed in 4.3.0
General Questions
In this issue, I have provided information with: 在这个 issue 中我提供了以下信息:
Issue Type
Issue Details
关系图在大量节点的时候使用edgeSymbol会导致标签虚化
Expected Behavior
标签正常显示
Current Behavior
标签被虚化
Online Example
官方的例子(http://echarts.baidu.com/examples/editor.html?c=graph-npm)
正常显示:
加入edgeSymbol: ['none', 'arrow']属性后标签虚化了:
修改后的代码:
Topics
Anything Else We Need to Know
Environment
ECharts version;ECharts 版本: {4.2.0-rc.2}
[ ] It happens only on certain browsers or operating systems. 对于特定浏览器或操作系统才会出现的问题,请提供相应环境信息:{BROWSER_VERSION_OR_OS_INFORMATION_HERE}