提交 c333d7ee authored 作者: mry's avatar mry

fix(base): 修改了报告样式

上级 1dc30777
...@@ -290,21 +290,22 @@ ...@@ -290,21 +290,22 @@
pieChart = { pieChart = {
title: { title: {
text: '测试结果', text: '测试结果',
subtext: '${"测试通过率:" + overView.probability + "%"!}', subtext: ' ' +
left: 'center' ' ${"测试通过率:" + overView.probability + "%"!}',
left: 'left'
}, },
tooltip: { tooltip: {
trigger: 'item' trigger: 'item'
}, },
legend: { legend: {
top: '5%', top: '85%',
left: 'left' left: 'center'
}, },
series: [ series: [
{ {
name: 'Access From', name: '是否成功',
type: 'pie', type: 'pie',
radius: ['40%', '70%'], radius: ['25%', '50%'],
avoidLabelOverlap: false, avoidLabelOverlap: false,
itemStyle: { itemStyle: {
borderRadius: 10, borderRadius: 10,
...@@ -320,11 +321,14 @@ ...@@ -320,11 +321,14 @@
show: true, show: true,
fontSize: '40', fontSize: '40',
fontWeight: 'bold' fontWeight: 'bold'
}
}, },
labelLine: { labelLine: {
show: false show: false,
fontSize: '40',
fontWeight: 'bold'
}
}, },
data: [ data: [
{value: ${overView.passNum!}, name: 'pass',itemStyle: { {value: ${overView.passNum!}, name: 'pass',itemStyle: {
color: 'green' color: 'green'
...@@ -368,7 +372,7 @@ ...@@ -368,7 +372,7 @@
}], }],
type: 'bar', type: 'bar',
showBackground: true, showBackground: true,
barWidth : 100, barWidth : 50,
backgroundStyle: { backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)' color: 'rgba(180, 180, 180, 0.2)'
} }
......
...@@ -43,8 +43,8 @@ ...@@ -43,8 +43,8 @@
</div> </div>
<div style="display: flex;"> <div style="display: flex;">
<div id="pieChart" style="width:50%;height: 350px;"></div> <div id="pieChart" style="width:50%;height: 300px;"></div>
<div id="histogram" style="width:50%;height: 350px;"></div> <div id="histogram" style="width:50%;height: 300px;"></div>
</div> </div>
<div class="table"> <div class="table">
...@@ -146,21 +146,22 @@ ...@@ -146,21 +146,22 @@
pieChart = { pieChart = {
title: { title: {
text: '测试结果', text: '测试结果',
subtext: '测试通过率', subtext: ' ' +
left: 'center' ' 测试通过率: 100%',
left: 'left',
}, },
tooltip: { tooltip: {
trigger: 'item' trigger: 'item'
}, },
legend: { legend: {
top: '5%', top: '85%',
left: 'left' left: 'center'
}, },
series: [ series: [
{ {
name: 'Access From', name: '是否成功',
type: 'pie', type: 'pie',
radius: ['40%', '70%'], radius: ['25%', '50%'],
avoidLabelOverlap: false, avoidLabelOverlap: false,
itemStyle: { itemStyle: {
borderRadius: 10, borderRadius: 10,
...@@ -176,11 +177,14 @@ ...@@ -176,11 +177,14 @@
show: true, show: true,
fontSize: '40', fontSize: '40',
fontWeight: 'bold' fontWeight: 'bold'
}
}, },
labelLine: { labelLine: {
show: false show: false,
fontSize: '40',
fontWeight: 'bold'
}
}, },
data: [ data: [
{value: 1, name: 'pass',itemStyle: { {value: 1, name: 'pass',itemStyle: {
color: 'green' color: 'green'
...@@ -223,7 +227,7 @@ ...@@ -223,7 +227,7 @@
} }
}], }],
type: 'bar', type: 'bar',
barWidth : 100, barWidth : 50,
showBackground: true, showBackground: true,
backgroundStyle: { backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)' color: 'rgba(180, 180, 180, 0.2)'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论