Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
半栈学徒
incubator-echarts
提交
4aaa11e9
I
incubator-echarts
项目概览
半栈学徒
/
incubator-echarts
与 Fork 源项目一致
从无法访问的项目Fork
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
incubator-echarts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4aaa11e9
编写于
6月 15, 2017
作者:
D
deqingli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update the style of tree view
上级
5ca294f8
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
409 addition
and
19 deletion
+409
-19
src/chart/tree.js
src/chart/tree.js
+1
-1
src/chart/tree/TreeSeries.js
src/chart/tree/TreeSeries.js
+12
-11
src/chart/tree/TreeView.js
src/chart/tree/TreeView.js
+7
-4
src/chart/tree/orthogonalLayout.js
src/chart/tree/orthogonalLayout.js
+0
-0
src/chart/tree/radialLayout.js
src/chart/tree/radialLayout.js
+3
-0
src/chart/tree/treeAction.js
src/chart/tree/treeAction.js
+3
-0
src/data/Tree.js
src/data/Tree.js
+1
-1
test/data/flare.json
test/data/flare.json
+380
-0
test/tree-basic.html
test/tree-basic.html
+2
-2
未找到文件。
src/chart/tree.js
浏览文件 @
4aaa11e9
...
@@ -4,6 +4,6 @@ define(function (require) {
...
@@ -4,6 +4,6 @@ define(function (require) {
require
(
'
./tree/TreeSeries
'
);
require
(
'
./tree/TreeSeries
'
);
require
(
'
./tree/TreeView
'
);
require
(
'
./tree/TreeView
'
);
echarts
.
registerLayout
(
require
(
'
./tree/
tree
Layout
'
));
echarts
.
registerLayout
(
require
(
'
./tree/
orthogonal
Layout
'
));
});
});
\ No newline at end of file
src/chart/tree/TreeSeries.js
浏览文件 @
4aaa11e9
...
@@ -39,10 +39,10 @@ define(function (require) {
...
@@ -39,10 +39,10 @@ define(function (require) {
z
:
2
,
z
:
2
,
// the position of the whole view
// the position of the whole view
left
:
'
10
%
'
,
left
:
'
5
%
'
,
top
:
'
5
%
'
,
top
:
'
1
%
'
,
right
:
'
20
%
'
,
right
:
'
15
%
'
,
bottom
:
'
5
%
'
,
bottom
:
'
1
%
'
,
// the layout of the tree, two value can be selected, 'orthogonal' or 'radial'
// the layout of the tree, two value can be selected, 'orthogonal' or 'radial'
layout
:
'
orthogonal
'
,
layout
:
'
orthogonal
'
,
...
@@ -51,19 +51,21 @@ define(function (require) {
...
@@ -51,19 +51,21 @@ define(function (require) {
orient
:
'
horizontal
'
,
orient
:
'
horizontal
'
,
// the radius of the node circle
// the radius of the node circle
nodeRadius
:
3
,
nodeRadius
:
2.5
,
lineStyle
:
{
lineStyle
:
{
normal
:
{
normal
:
{
border
Color
:
'
#555
'
,
Color
:
'
#555
'
,
opacity
:
0.4
,
opacity
:
0.4
,
lineWidth
:
1.5
// borderWidth: 10,
lineWidth
:
20
,
curveness
:
0.6
,
}
}
},
},
itemStyle
:
{
itemStyle
:
{
normal
:
{
normal
:
{
color
:
'
#
000
'
color
:
'
#
444
'
}
}
},
},
...
@@ -72,7 +74,7 @@ define(function (require) {
...
@@ -72,7 +74,7 @@ define(function (require) {
show
:
true
,
show
:
true
,
position
:
'
left
'
,
position
:
'
left
'
,
textStyle
:
{
textStyle
:
{
color
:
'
#
000
'
color
:
'
#
555
'
}
}
}
}
},
},
...
@@ -81,7 +83,6 @@ define(function (require) {
...
@@ -81,7 +83,6 @@ define(function (require) {
itemStyle
:
{
itemStyle
:
{
normal
:
{
normal
:
{
color
:
'
#999
'
color
:
'
#999
'
}
}
},
},
label
:
{
label
:
{
...
...
src/chart/tree/TreeView.js
浏览文件 @
4aaa11e9
...
@@ -22,7 +22,9 @@ define(function (require) {
...
@@ -22,7 +22,9 @@ define(function (require) {
var
layoutInfo
=
seriesModel
.
layoutInfo
;
var
layoutInfo
=
seriesModel
.
layoutInfo
;
var
layout
=
seriesModel
.
get
(
'
layout
'
);
var
layout
=
seriesModel
.
get
(
'
layout
'
);
var
orient
=
seriesModel
.
get
(
'
orient
'
);
var
orient
=
seriesModel
.
get
(
'
orient
'
);
var
lineStyle
=
seriesModel
.
getModel
(
'
lineStyle.normal
'
).
getLineStyle
();
var
lineStyleModel
=
seriesModel
.
getModel
(
'
lineStyle.normal
'
);
var
curvature
=
lineStyleModel
.
get
(
'
curveness
'
);
var
lineStyle
=
lineStyleModel
.
getLineStyle
();
group
.
removeAll
();
group
.
removeAll
();
group
.
position
=
[
layoutInfo
.
x
,
layoutInfo
.
y
];
group
.
position
=
[
layoutInfo
.
x
,
layoutInfo
.
y
];
...
@@ -45,15 +47,15 @@ define(function (require) {
...
@@ -45,15 +47,15 @@ define(function (require) {
var
cpx2
;
var
cpx2
;
var
cpy2
;
var
cpy2
;
if
(
orient
===
'
horizontal
'
)
{
if
(
orient
===
'
horizontal
'
)
{
cpx1
=
(
x1
+
x2
)
/
2
;
cpx1
=
x1
+
(
x2
-
x1
)
*
curvature
*
1.6
;
cpy1
=
y1
;
cpy1
=
y1
;
cpx2
=
x
1
;
cpx2
=
x
2
+
(
x1
-
x2
)
*
curvature
;
cpy2
=
y2
;
cpy2
=
y2
;
}
}
// vertical
// vertical
if
(
orient
===
'
vertical
'
)
{
if
(
orient
===
'
vertical
'
)
{
cpx1
=
x1
;
cpx1
=
x1
;
cpy1
=
(
y1
+
y2
)
/
2
;
cpy1
=
(
y1
+
y2
)
/
2
cpx2
=
x2
;
cpx2
=
x2
;
cpy2
=
y1
;
cpy2
=
y1
;
}
}
...
@@ -83,6 +85,7 @@ define(function (require) {
...
@@ -83,6 +85,7 @@ define(function (require) {
realRoot
.
eachNode
(
'
preorder
'
,
function
(
node
)
{
realRoot
.
eachNode
(
'
preorder
'
,
function
(
node
)
{
var
layout
=
node
.
getLayout
();
var
layout
=
node
.
getLayout
();
// leaf node will get the leavesModel
var
itemModel
=
node
.
getModel
();
var
itemModel
=
node
.
getModel
();
var
itemNormalStyle
=
itemModel
.
getModel
(
'
itemStyle.normal
'
).
getItemStyle
();
var
itemNormalStyle
=
itemModel
.
getModel
(
'
itemStyle.normal
'
).
getItemStyle
();
var
labelModel
=
itemModel
.
getModel
(
'
label.normal
'
);
var
labelModel
=
itemModel
.
getModel
(
'
label.normal
'
);
...
...
src/chart/tree/
tree
Layout.js
→
src/chart/tree/
orthogonal
Layout.js
浏览文件 @
4aaa11e9
文件已移动
src/chart/tree/radialLayout.js
0 → 100644
浏览文件 @
4aaa11e9
define
(
function
(
require
)
{
});
\ No newline at end of file
src/chart/tree/treeAction.js
0 → 100644
浏览文件 @
4aaa11e9
define
(
function
(
require
)
{
});
\ No newline at end of file
src/data/Tree.js
浏览文件 @
4aaa11e9
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* @module echarts/data/Tree
* @module echarts/data/Tree
*/
*/
define
(
function
(
require
)
{
define
(
function
(
require
)
{
var
zrUtil
=
require
(
'
zrender/core/util
'
);
var
zrUtil
=
require
(
'
zrender/core/util
'
);
var
Model
=
require
(
'
../model/Model
'
);
var
Model
=
require
(
'
../model/Model
'
);
...
...
test/data/flare.json
0 → 100644
浏览文件 @
4aaa11e9
{
"name"
:
"flare"
,
"children"
:
[
{
"name"
:
"analytics"
,
"children"
:
[
{
"name"
:
"cluster"
,
"children"
:
[
{
"name"
:
"AgglomerativeCluster"
,
"value"
:
3938
},
{
"name"
:
"CommunityStructure"
,
"value"
:
3812
},
{
"name"
:
"HierarchicalCluster"
,
"value"
:
6714
},
{
"name"
:
"MergeEdge"
,
"value"
:
743
}
]
},
{
"name"
:
"graph"
,
"children"
:
[
{
"name"
:
"BetweennessCentrality"
,
"value"
:
3534
},
{
"name"
:
"LinkDistance"
,
"value"
:
5731
},
{
"name"
:
"MaxFlowMinCut"
,
"value"
:
7840
},
{
"name"
:
"ShortestPaths"
,
"value"
:
5914
},
{
"name"
:
"SpanningTree"
,
"value"
:
3416
}
]
},
{
"name"
:
"optimization"
,
"children"
:
[
{
"name"
:
"AspectRatioBanker"
,
"value"
:
7074
}
]
}
]
},
{
"name"
:
"animate"
,
"children"
:
[
{
"name"
:
"Easing"
,
"value"
:
17010
},
{
"name"
:
"FunctionSequence"
,
"value"
:
5842
},
{
"name"
:
"interpolate"
,
"children"
:
[
{
"name"
:
"ArrayInterpolator"
,
"value"
:
1983
},
{
"name"
:
"ColorInterpolator"
,
"value"
:
2047
},
{
"name"
:
"DateInterpolator"
,
"value"
:
1375
},
{
"name"
:
"Interpolator"
,
"value"
:
8746
},
{
"name"
:
"MatrixInterpolator"
,
"value"
:
2202
},
{
"name"
:
"NumberInterpolator"
,
"value"
:
1382
},
{
"name"
:
"ObjectInterpolator"
,
"value"
:
1629
},
{
"name"
:
"PointInterpolator"
,
"value"
:
1675
},
{
"name"
:
"RectangleInterpolator"
,
"value"
:
2042
}
]
},
{
"name"
:
"ISchedulable"
,
"value"
:
1041
},
{
"name"
:
"Parallel"
,
"value"
:
5176
},
{
"name"
:
"Pause"
,
"value"
:
449
},
{
"name"
:
"Scheduler"
,
"value"
:
5593
},
{
"name"
:
"Sequence"
,
"value"
:
5534
},
{
"name"
:
"Transition"
,
"value"
:
9201
},
{
"name"
:
"Transitioner"
,
"value"
:
19975
},
{
"name"
:
"TransitionEvent"
,
"value"
:
1116
},
{
"name"
:
"Tween"
,
"value"
:
6006
}
]
},
{
"name"
:
"data"
,
"children"
:
[
{
"name"
:
"converters"
,
"children"
:
[
{
"name"
:
"Converters"
,
"value"
:
721
},
{
"name"
:
"DelimitedTextConverter"
,
"value"
:
4294
},
{
"name"
:
"GraphMLConverter"
,
"value"
:
9800
},
{
"name"
:
"IDataConverter"
,
"value"
:
1314
},
{
"name"
:
"JSONConverter"
,
"value"
:
2220
}
]
},
{
"name"
:
"DataField"
,
"value"
:
1759
},
{
"name"
:
"DataSchema"
,
"value"
:
2165
},
{
"name"
:
"DataSet"
,
"value"
:
586
},
{
"name"
:
"DataSource"
,
"value"
:
3331
},
{
"name"
:
"DataTable"
,
"value"
:
772
},
{
"name"
:
"DataUtil"
,
"value"
:
3322
}
]
},
{
"name"
:
"display"
,
"children"
:
[
{
"name"
:
"DirtySprite"
,
"value"
:
8833
},
{
"name"
:
"LineSprite"
,
"value"
:
1732
},
{
"name"
:
"RectSprite"
,
"value"
:
3623
},
{
"name"
:
"TextSprite"
,
"value"
:
10066
}
]
},
{
"name"
:
"flex"
,
"children"
:
[
{
"name"
:
"FlareVis"
,
"value"
:
4116
}
]
},
{
"name"
:
"physics"
,
"children"
:
[
{
"name"
:
"DragForce"
,
"value"
:
1082
},
{
"name"
:
"GravityForce"
,
"value"
:
1336
},
{
"name"
:
"IForce"
,
"value"
:
319
},
{
"name"
:
"NBodyForce"
,
"value"
:
10498
},
{
"name"
:
"Particle"
,
"value"
:
2822
},
{
"name"
:
"Simulation"
,
"value"
:
9983
},
{
"name"
:
"Spring"
,
"value"
:
2213
},
{
"name"
:
"SpringForce"
,
"value"
:
1681
}
]
},
{
"name"
:
"query"
,
"children"
:
[
{
"name"
:
"AggregateExpression"
,
"value"
:
1616
},
{
"name"
:
"And"
,
"value"
:
1027
},
{
"name"
:
"Arithmetic"
,
"value"
:
3891
},
{
"name"
:
"Average"
,
"value"
:
891
},
{
"name"
:
"BinaryExpression"
,
"value"
:
2893
},
{
"name"
:
"Comparison"
,
"value"
:
5103
},
{
"name"
:
"CompositeExpression"
,
"value"
:
3677
},
{
"name"
:
"Count"
,
"value"
:
781
},
{
"name"
:
"DateUtil"
,
"value"
:
4141
},
{
"name"
:
"Distinct"
,
"value"
:
933
},
{
"name"
:
"Expression"
,
"value"
:
5130
},
{
"name"
:
"ExpressionIterator"
,
"value"
:
3617
},
{
"name"
:
"Fn"
,
"value"
:
3240
},
{
"name"
:
"If"
,
"value"
:
2732
},
{
"name"
:
"IsA"
,
"value"
:
2039
},
{
"name"
:
"Literal"
,
"value"
:
1214
},
{
"name"
:
"Match"
,
"value"
:
3748
},
{
"name"
:
"Maximum"
,
"value"
:
843
},
{
"name"
:
"methods"
,
"children"
:
[
{
"name"
:
"add"
,
"value"
:
593
},
{
"name"
:
"and"
,
"value"
:
330
},
{
"name"
:
"average"
,
"value"
:
287
},
{
"name"
:
"count"
,
"value"
:
277
},
{
"name"
:
"distinct"
,
"value"
:
292
},
{
"name"
:
"div"
,
"value"
:
595
},
{
"name"
:
"eq"
,
"value"
:
594
},
{
"name"
:
"fn"
,
"value"
:
460
},
{
"name"
:
"gt"
,
"value"
:
603
},
{
"name"
:
"gte"
,
"value"
:
625
},
{
"name"
:
"iff"
,
"value"
:
748
},
{
"name"
:
"isa"
,
"value"
:
461
},
{
"name"
:
"lt"
,
"value"
:
597
},
{
"name"
:
"lte"
,
"value"
:
619
},
{
"name"
:
"max"
,
"value"
:
283
},
{
"name"
:
"min"
,
"value"
:
283
},
{
"name"
:
"mod"
,
"value"
:
591
},
{
"name"
:
"mul"
,
"value"
:
603
},
{
"name"
:
"neq"
,
"value"
:
599
},
{
"name"
:
"not"
,
"value"
:
386
},
{
"name"
:
"or"
,
"value"
:
323
},
{
"name"
:
"orderby"
,
"value"
:
307
},
{
"name"
:
"range"
,
"value"
:
772
},
{
"name"
:
"select"
,
"value"
:
296
},
{
"name"
:
"stddev"
,
"value"
:
363
},
{
"name"
:
"sub"
,
"value"
:
600
},
{
"name"
:
"sum"
,
"value"
:
280
},
{
"name"
:
"update"
,
"value"
:
307
},
{
"name"
:
"variance"
,
"value"
:
335
},
{
"name"
:
"where"
,
"value"
:
299
},
{
"name"
:
"xor"
,
"value"
:
354
},
{
"name"
:
"_"
,
"value"
:
264
}
]
},
{
"name"
:
"Minimum"
,
"value"
:
843
},
{
"name"
:
"Not"
,
"value"
:
1554
},
{
"name"
:
"Or"
,
"value"
:
970
},
{
"name"
:
"Query"
,
"value"
:
13896
},
{
"name"
:
"Range"
,
"value"
:
1594
},
{
"name"
:
"StringUtil"
,
"value"
:
4130
},
{
"name"
:
"Sum"
,
"value"
:
791
},
{
"name"
:
"Variable"
,
"value"
:
1124
},
{
"name"
:
"Variance"
,
"value"
:
1876
},
{
"name"
:
"Xor"
,
"value"
:
1101
}
]
},
{
"name"
:
"scale"
,
"children"
:
[
{
"name"
:
"IScaleMap"
,
"value"
:
2105
},
{
"name"
:
"LinearScale"
,
"value"
:
1316
},
{
"name"
:
"LogScale"
,
"value"
:
3151
},
{
"name"
:
"OrdinalScale"
,
"value"
:
3770
},
{
"name"
:
"QuantileScale"
,
"value"
:
2435
},
{
"name"
:
"QuantitativeScale"
,
"value"
:
4839
},
{
"name"
:
"RootScale"
,
"value"
:
1756
},
{
"name"
:
"Scale"
,
"value"
:
4268
},
{
"name"
:
"ScaleType"
,
"value"
:
1821
},
{
"name"
:
"TimeScale"
,
"value"
:
5833
}
]
},
{
"name"
:
"util"
,
"children"
:
[
{
"name"
:
"Arrays"
,
"value"
:
8258
},
{
"name"
:
"Colors"
,
"value"
:
10001
},
{
"name"
:
"Dates"
,
"value"
:
8217
},
{
"name"
:
"Displays"
,
"value"
:
12555
},
{
"name"
:
"Filter"
,
"value"
:
2324
},
{
"name"
:
"Geometry"
,
"value"
:
10993
},
{
"name"
:
"heap"
,
"children"
:
[
{
"name"
:
"FibonacciHeap"
,
"value"
:
9354
},
{
"name"
:
"HeapNode"
,
"value"
:
1233
}
]
},
{
"name"
:
"IEvaluable"
,
"value"
:
335
},
{
"name"
:
"IPredicate"
,
"value"
:
383
},
{
"name"
:
"IValueProxy"
,
"value"
:
874
},
{
"name"
:
"math"
,
"children"
:
[
{
"name"
:
"DenseMatrix"
,
"value"
:
3165
},
{
"name"
:
"IMatrix"
,
"value"
:
2815
},
{
"name"
:
"SparseMatrix"
,
"value"
:
3366
}
]
},
{
"name"
:
"Maths"
,
"value"
:
17705
},
{
"name"
:
"Orientation"
,
"value"
:
1486
},
{
"name"
:
"palette"
,
"children"
:
[
{
"name"
:
"ColorPalette"
,
"value"
:
6367
},
{
"name"
:
"Palette"
,
"value"
:
1229
},
{
"name"
:
"ShapePalette"
,
"value"
:
2059
},
{
"name"
:
"SizePalette"
,
"value"
:
2291
}
]
},
{
"name"
:
"Property"
,
"value"
:
5559
},
{
"name"
:
"Shapes"
,
"value"
:
19118
},
{
"name"
:
"Sort"
,
"value"
:
6887
},
{
"name"
:
"Stats"
,
"value"
:
6557
},
{
"name"
:
"Strings"
,
"value"
:
22026
}
]
},
{
"name"
:
"vis"
,
"children"
:
[
{
"name"
:
"axis"
,
"children"
:
[
{
"name"
:
"Axes"
,
"value"
:
1302
},
{
"name"
:
"Axis"
,
"value"
:
24593
},
{
"name"
:
"AxisGridLine"
,
"value"
:
652
},
{
"name"
:
"AxisLabel"
,
"value"
:
636
},
{
"name"
:
"CartesianAxes"
,
"value"
:
6703
}
]
},
{
"name"
:
"controls"
,
"children"
:
[
{
"name"
:
"AnchorControl"
,
"value"
:
2138
},
{
"name"
:
"ClickControl"
,
"value"
:
3824
},
{
"name"
:
"Control"
,
"value"
:
1353
},
{
"name"
:
"ControlList"
,
"value"
:
4665
},
{
"name"
:
"DragControl"
,
"value"
:
2649
},
{
"name"
:
"ExpandControl"
,
"value"
:
2832
},
{
"name"
:
"HoverControl"
,
"value"
:
4896
},
{
"name"
:
"IControl"
,
"value"
:
763
},
{
"name"
:
"PanZoomControl"
,
"value"
:
5222
},
{
"name"
:
"SelectionControl"
,
"value"
:
7862
},
{
"name"
:
"TooltipControl"
,
"value"
:
8435
}
]
},
{
"name"
:
"data"
,
"children"
:
[
{
"name"
:
"Data"
,
"value"
:
20544
},
{
"name"
:
"DataList"
,
"value"
:
19788
},
{
"name"
:
"DataSprite"
,
"value"
:
10349
},
{
"name"
:
"EdgeSprite"
,
"value"
:
3301
},
{
"name"
:
"NodeSprite"
,
"value"
:
19382
},
{
"name"
:
"render"
,
"children"
:
[
{
"name"
:
"ArrowType"
,
"value"
:
698
},
{
"name"
:
"EdgeRenderer"
,
"value"
:
5569
},
{
"name"
:
"IRenderer"
,
"value"
:
353
},
{
"name"
:
"ShapeRenderer"
,
"value"
:
2247
}
]
},
{
"name"
:
"ScaleBinding"
,
"value"
:
11275
},
{
"name"
:
"Tree"
,
"value"
:
7147
},
{
"name"
:
"TreeBuilder"
,
"value"
:
9930
}
]
},
{
"name"
:
"events"
,
"children"
:
[
{
"name"
:
"DataEvent"
,
"value"
:
2313
},
{
"name"
:
"SelectionEvent"
,
"value"
:
1880
},
{
"name"
:
"TooltipEvent"
,
"value"
:
1701
},
{
"name"
:
"VisualizationEvent"
,
"value"
:
1117
}
]
},
{
"name"
:
"legend"
,
"children"
:
[
{
"name"
:
"Legend"
,
"value"
:
20859
},
{
"name"
:
"LegendItem"
,
"value"
:
4614
},
{
"name"
:
"LegendRange"
,
"value"
:
10530
}
]
},
{
"name"
:
"operator"
,
"children"
:
[
{
"name"
:
"distortion"
,
"children"
:
[
{
"name"
:
"BifocalDistortion"
,
"value"
:
4461
},
{
"name"
:
"Distortion"
,
"value"
:
6314
},
{
"name"
:
"FisheyeDistortion"
,
"value"
:
3444
}
]
},
{
"name"
:
"encoder"
,
"children"
:
[
{
"name"
:
"ColorEncoder"
,
"value"
:
3179
},
{
"name"
:
"Encoder"
,
"value"
:
4060
},
{
"name"
:
"PropertyEncoder"
,
"value"
:
4138
},
{
"name"
:
"ShapeEncoder"
,
"value"
:
1690
},
{
"name"
:
"SizeEncoder"
,
"value"
:
1830
}
]
},
{
"name"
:
"filter"
,
"children"
:
[
{
"name"
:
"FisheyeTreeFilter"
,
"value"
:
5219
},
{
"name"
:
"GraphDistanceFilter"
,
"value"
:
3165
},
{
"name"
:
"VisibilityFilter"
,
"value"
:
3509
}
]
},
{
"name"
:
"IOperator"
,
"value"
:
1286
},
{
"name"
:
"label"
,
"children"
:
[
{
"name"
:
"Labeler"
,
"value"
:
9956
},
{
"name"
:
"RadialLabeler"
,
"value"
:
3899
},
{
"name"
:
"StackedAreaLabeler"
,
"value"
:
3202
}
]
},
{
"name"
:
"layout"
,
"children"
:
[
{
"name"
:
"AxisLayout"
,
"value"
:
6725
},
{
"name"
:
"BundledEdgeRouter"
,
"value"
:
3727
},
{
"name"
:
"CircleLayout"
,
"value"
:
9317
},
{
"name"
:
"CirclePackingLayout"
,
"value"
:
12003
},
{
"name"
:
"DendrogramLayout"
,
"value"
:
4853
},
{
"name"
:
"ForceDirectedLayout"
,
"value"
:
8411
},
{
"name"
:
"IcicleTreeLayout"
,
"value"
:
4864
},
{
"name"
:
"IndentedTreeLayout"
,
"value"
:
3174
},
{
"name"
:
"Layout"
,
"value"
:
7881
},
{
"name"
:
"NodeLinkTreeLayout"
,
"value"
:
12870
},
{
"name"
:
"PieLayout"
,
"value"
:
2728
},
{
"name"
:
"RadialTreeLayout"
,
"value"
:
12348
},
{
"name"
:
"RandomLayout"
,
"value"
:
870
},
{
"name"
:
"StackedAreaLayout"
,
"value"
:
9121
},
{
"name"
:
"TreeMapLayout"
,
"value"
:
9191
}
]
},
{
"name"
:
"Operator"
,
"value"
:
2490
},
{
"name"
:
"OperatorList"
,
"value"
:
5248
},
{
"name"
:
"OperatorSequence"
,
"value"
:
4190
},
{
"name"
:
"OperatorSwitch"
,
"value"
:
2581
},
{
"name"
:
"SortOperator"
,
"value"
:
2023
}
]
},
{
"name"
:
"Visualization"
,
"value"
:
16540
}
]
}
]
}
test/tree-basic.html
浏览文件 @
4aaa11e9
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<body>
<body>
<style>
<style>
html
,
body
,
#main
{
html
,
body
,
#main
{
width
:
10
0%
;
width
:
9
0%
;
height
:
100%
;
height
:
100%
;
}
}
</style>
</style>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
chart
.
resize
();
chart
.
resize
();
};
};
$
.
getJSON
(
'
./data/
tree-simpl
e.json
'
)
$
.
getJSON
(
'
./data/
flar
e.json
'
)
.
done
(
function
(
data
)
{
.
done
(
function
(
data
)
{
chart
.
setOption
({
chart
.
setOption
({
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录