Skip to content
切换导航面板
P
项目
G
群组
S
代码片段
帮助
成立
/
weiduh5
当前项目
正在载入...
登录
切换导航面板
转到一个项目
项目
版本库
问题
0
合并请求
0
流水线
维基
代码片段
设置
活动
图像
图表
创建新的问题
作业
提交
问题看板
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e9918a92
authored
Nov 06, 2017
by
成立
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
f249ecff
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
38 行增加
和
43 行删除
page2.html
page2.html
查看文件 @
e9918a92
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
});
});
var
apiUrl
=
'http://47.92.120.206:18080/wedo-fit'
;
var
apiUrl
=
'http://47.92.120.206:18080/wedo-fit'
;
var
id
=
'8353714658471936'
;
var
id
=
'8353714658471936'
;
var
arr
=
[];
$
.
ajax
({
$
.
ajax
({
url
:
apiUrl
+
'/wedofit/class/group/intro/'
+
id
,
url
:
apiUrl
+
'/wedofit/class/group/intro/'
+
id
,
type
:
'GET'
,
type
:
'GET'
,
...
@@ -58,54 +59,48 @@
...
@@ -58,54 +59,48 @@
$
(
'.trainingEffect'
).
text
(
resp
.
data
.
trainingEffect
);
$
(
'.trainingEffect'
).
text
(
resp
.
data
.
trainingEffect
);
$
(
'.suitableFor'
).
text
(
resp
.
data
.
suitableFor
);
$
(
'.suitableFor'
).
text
(
resp
.
data
.
suitableFor
);
$
(
'.attention'
).
text
(
resp
.
data
.
attention
);
$
(
'.attention'
).
text
(
resp
.
data
.
attention
);
}
arr
=
[
resp
.
data
.
consumeLevel
,
resp
.
data
.
coordinationLevel
,
resp
.
data
.
pliableLevel
,
resp
.
data
.
strengthLevel
,
resp
.
data
.
heartbeatLevel
];
});
var
option
=
{
var
myChart
=
echarts
.
init
(
document
.
getElementById
(
'main'
));
tooltip
:
{
trigger
:
'axis'
// 指定图表的配置项和数据
},
var
option
=
{
textStyle
:
{
title
:
{
fontSize
:
50
text
:
'多雷达图'
},
tooltip
:
{
trigger
:
'axis'
},
legend
:
{
x
:
'center'
,
data
:[
'某软件'
,
'某主食手机'
,
'某水果手机'
,
'降水量'
,
'蒸发量'
]
},
radar
:
[
{
indicator
:
[
{
text
:
'品牌'
,
max
:
100
},
{
text
:
'内容'
,
max
:
100
},
{
text
:
'可用性'
,
max
:
100
},
{
text
:
'功能'
,
max
:
100
}
],
center
:
[
'50%'
,
'50%'
],
radius
:
80
}
],
series
:
[
{
type
:
'radar'
,
tooltip
:
{
trigger
:
'item'
},
},
itemStyle
:
{
normal
:
{
areaStyle
:
{
type
:
'default'
}}},
radar
:
[
data
:
[
{
{
value
:
[
60
,
73
,
85
,
40
],
indicator
:
[
name
:
'某软件'
{
text
:
'消耗分值'
,
max
:
5
},
{
text
:
'协调分值'
,
max
:
5
},
{
text
:
'柔韧分值'
,
max
:
5
},
{
text
:
'力量分值'
,
max
:
5
},
{
text
:
'心肺分值'
,
max
:
5
}
],
center
:
[
'50%'
,
'50%'
],
radius
:
200
}
],
series
:
[
{
type
:
'radar'
,
tooltip
:
{
trigger
:
'item'
},
itemStyle
:
{
normal
:
{
areaStyle
:
{
type
:
'default'
}}},
data
:
[
{
value
:
arr
}
]
}
}
]
]
}
};
]
};
// 使用刚指定的配置项和数据显示图表。
myChart
.
setOption
(
option
);
myChart
.
setOption
(
option
);
}
});
var
myChart
=
echarts
.
init
(
document
.
getElementById
(
'main'
));
})
})
</script>
</script>
</body>
</body>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此消息的编辑!
取消
请
注册
或
登录
后发表评论