Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Phodal
Coca
提交
12cfbc5e
C
Coca
项目概览
Phodal
/
Coca
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
Coca
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
12cfbc5e
编写于
7月 20, 2020
作者:
P
Phodal Huang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: rejust some parameters
上级
e2d9f4ba
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
83 addition
and
11 deletion
+83
-11
static/index.html
static/index.html
+83
-11
未找到文件。
static/index.html
浏览文件 @
12cfbc5e
...
...
@@ -55,8 +55,6 @@ $.get('visual.json', function (diskData) {
name
:
"
root.
"
+
link
.
source
,
value
:
1
}
}
else
{
dMap
[
link
.
source
].
value
++
}
}
...
...
@@ -75,24 +73,54 @@ $.get('visual.json', function (diskData) {
return
[
{
itemStyle
:
{
borderWidth
:
0
,
gapWidth
:
5
borderColor
:
'
#555
'
,
borderWidth
:
4
,
gapWidth
:
4
}
},
{
colorSaturation
:
[
0.2
,
0.8
],
itemStyle
:
{
borderColorSaturation
:
0.7
,
gapWidth
:
3
,
borderWidth
:
2
}
},
{
colorSaturation
:
[
0.3
,
0.5
],
itemStyle
:
{
borderColorSaturation
:
0.6
,
gapWidth
:
2
}
},
{
colorSaturation
:
[
0.3
,
0.5
],
itemStyle
:
{
borderColorSaturation
:
0.6
,
gapWidth
:
1
}
},
{
colorSaturation
:
[
0.35
,
0.5
],
borderColor
:
'
#fff
'
,
colorSaturation
:
[
0.3
,
0.5
],
itemStyle
:
{
gapWidth
:
1
,
borderColorSaturation
:
0.6
borderColorSaturation
:
0.6
,
gapWidth
:
1
}
}
];
}
function
colorMappingChange
(
value
)
{
var
levelOption
=
getLevelOption
(
value
);
chart
.
setOption
({
series
:
[{
levels
:
levelOption
}]
});
}
myChart
.
setOption
({
title
:
{
text
:
'
Call
'
,
...
...
@@ -109,8 +137,8 @@ $.get('visual.json', function (diskData) {
}
return
[
'
<div class="tooltip-title">
'
+
formatUtil
.
encodeHTML
(
treePath
.
join
(
'
/
'
))
+
'
</div>
'
,
'
Call
'
+
formatUtil
.
addCommas
(
value
)
+
'
'
,
'
<div class="tooltip-title">
'
+
formatUtil
.
encodeHTML
(
treePath
.
join
(
'
.
'
))
+
'
</div>
'
,
'
Call
'
+
formatUtil
.
addCommas
(
value
)
+
'
'
,
].
join
(
''
);
}
},
...
...
@@ -121,12 +149,56 @@ $.get('visual.json', function (diskData) {
type
:
'
treemap
'
,
visibleMin
:
300
,
label
:
{
show
:
true
,
formatter
:
'
{b}
'
position
:
'
insideTopLeft
'
,
formatter
:
function
(
params
)
{
// var arr = [
// '{name|' + params.name + '}',
// '{hr|}',
// '{budget|$ ' + echarts.format.addCommas(params.value[0]) + '} {label|budget}'
// ];
//
// mode !== 1 && arr.push(
// '{household|$ ' + echarts.format.addCommas((+params.value[3].toFixed(4)) * 1000) + '} {label|per household}'
// );
return
params
.
name
;
},
rich
:
{
budget
:
{
fontSize
:
22
,
lineHeight
:
30
,
color
:
'
yellow
'
},
household
:
{
fontSize
:
14
,
color
:
'
#fff
'
},
label
:
{
fontSize
:
9
,
backgroundColor
:
'
rgba(0,0,0,0.3)
'
,
color
:
'
#fff
'
,
borderRadius
:
2
,
padding
:
[
2
,
4
],
lineHeight
:
25
,
align
:
'
right
'
},
name
:
{
fontSize
:
12
,
color
:
'
#fff
'
},
hr
:
{
width
:
'
100%
'
,
borderColor
:
'
rgba(255,255,255,0.2)
'
,
borderWidth
:
0.5
,
height
:
0
,
lineHeight
:
10
}
}
},
itemStyle
:
{
borderColor
:
'
#fff
'
},
visualDimension
:
2
,
levels
:
getLevelOption
(),
data
:
data
.
children
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录