提交 85051010 编写于 作者: L lang

force 边tooptip的默认value

上级 ac3005d1
......@@ -85,6 +85,7 @@ option = {
series : [
{
type:'force',
name : "人物关系",
categories : [
{
name: '人物',
......
......@@ -80,7 +80,8 @@ option = {
y:'bottom'
},
tooltip : {
trigger: 'item'
trigger: 'item',
formatter : "{b}"
},
legend : {
data : ['HTMLElement', 'WebGL', 'SVG', 'CSS', 'Other'],
......
......@@ -421,6 +421,8 @@ define(function(require) {
var source = filteredNodes[link.source];
var target = filteredNodes[link.target];
var link = rawLinks[link.rawIndex];
ecData.pack(
linkShape,
// serie
......@@ -428,11 +430,15 @@ define(function(require) {
// serie index
0,
// link data
rawLinks[link.rawIndex],
{
source : link.source,
target : link.target,
value : link.value || 0
},
// link data index
link.rawIndex,
// source name - target name
source.name + '-' + target.name,
source.name + ' - ' + target.name,
// link value
link.value || 0,
// special
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册