|
@@ -553,38 +553,35 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
const _option = {
|
|
const _option = {
|
|
- // title: {
|
|
|
|
- // text: "课堂时间分配",
|
|
|
|
- // left: "center"
|
|
|
|
- // },
|
|
|
|
tooltip: {
|
|
tooltip: {
|
|
- // text: "课堂时间分配",
|
|
|
|
left: "center",
|
|
left: "center",
|
|
trigger: "item",
|
|
trigger: "item",
|
|
- formatter: "{a} <br/>{b}: {d}%" // {a}为系列名,{b}为数据名,{d}为百分比
|
|
|
|
|
|
+ formatter: "{a} <br/>{b}: {d}%",
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#000000'
|
|
|
|
+ }
|
|
},
|
|
},
|
|
legend: {
|
|
legend: {
|
|
top: "5%",
|
|
top: "5%",
|
|
- // orient: "vertical",
|
|
|
|
- left: "center"
|
|
|
|
|
|
+ left: "center",
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#000000'
|
|
|
|
+ }
|
|
},
|
|
},
|
|
series: [
|
|
series: [
|
|
{
|
|
{
|
|
name: "课堂时间分配",
|
|
name: "课堂时间分配",
|
|
type: "pie",
|
|
type: "pie",
|
|
radius: ["40%", "70%"],
|
|
radius: ["40%", "70%"],
|
|
- // avoidLabelOverlap: false,
|
|
|
|
label: {
|
|
label: {
|
|
- formatter: "{b}: {d}%"
|
|
|
|
- // show: false,
|
|
|
|
- // position: "center",
|
|
|
|
|
|
+ formatter: "{b}: {d}%",
|
|
|
|
+ color: '#000000'
|
|
},
|
|
},
|
|
emphasis: {
|
|
emphasis: {
|
|
label: {
|
|
label: {
|
|
show: true,
|
|
show: true,
|
|
- // fontSize: 40,
|
|
|
|
- // fontWeight: "bold",
|
|
|
|
- formatter: "{b}: {d}%" // 显示百分比
|
|
|
|
|
|
+ formatter: "{b}: {d}%",
|
|
|
|
+ color: '#000000'
|
|
},
|
|
},
|
|
itemStyle: {
|
|
itemStyle: {
|
|
shadowBlur: 10,
|
|
shadowBlur: 10,
|
|
@@ -592,9 +589,6 @@ export default {
|
|
shadowColor: "rgba(0, 0, 0, 0.5)"
|
|
shadowColor: "rgba(0, 0, 0, 0.5)"
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- // labelLine: {
|
|
|
|
- // show: false,
|
|
|
|
- // },
|
|
|
|
data: _data
|
|
data: _data
|
|
}
|
|
}
|
|
]
|
|
]
|
|
@@ -648,14 +642,26 @@ ${JSON.stringify(_dataList)}
|
|
nameLocation: "end", // 标题位置
|
|
nameLocation: "end", // 标题位置
|
|
scale: true,
|
|
scale: true,
|
|
min: 0,
|
|
min: 0,
|
|
- max: _maxValue
|
|
|
|
|
|
+ max: _maxValue,
|
|
|
|
+ axisLabel: {
|
|
|
|
+ color: "#000" // 设置字体颜色为#000
|
|
|
|
+ },
|
|
|
|
+ nameTextStyle: {
|
|
|
|
+ color: "#000" // 设置老师字体颜色为#000
|
|
|
|
+ }
|
|
},
|
|
},
|
|
yAxis: {
|
|
yAxis: {
|
|
name: "学生", // Y轴标题
|
|
name: "学生", // Y轴标题
|
|
nameLocation: "end", // 标题位置
|
|
nameLocation: "end", // 标题位置
|
|
scale: true,
|
|
scale: true,
|
|
min: 0,
|
|
min: 0,
|
|
- max: _maxValue
|
|
|
|
|
|
+ max: _maxValue,
|
|
|
|
+ axisLabel: {
|
|
|
|
+ color: "#000" // 设置字体颜色为#000
|
|
|
|
+ },
|
|
|
|
+ nameTextStyle: {
|
|
|
|
+ color: "#000" // 设置学生字体颜色为#000
|
|
|
|
+ }
|
|
},
|
|
},
|
|
grid: {
|
|
grid: {
|
|
containLabel: true
|
|
containLabel: true
|
|
@@ -665,7 +671,9 @@ ${JSON.stringify(_dataList)}
|
|
name: "数据",
|
|
name: "数据",
|
|
step: "start",
|
|
step: "start",
|
|
data: _result,
|
|
data: _result,
|
|
- type: "line"
|
|
|
|
|
|
+ type: "line",
|
|
|
|
+ lineStyle: {
|
|
|
|
+ }
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "对角线",
|
|
name: "对角线",
|
|
@@ -675,7 +683,7 @@ ${JSON.stringify(_dataList)}
|
|
[_maxValue, _maxValue]
|
|
[_maxValue, _maxValue]
|
|
],
|
|
],
|
|
lineStyle: {
|
|
lineStyle: {
|
|
- type: "dashed"
|
|
|
|
|
|
+ type: "dashed",
|
|
},
|
|
},
|
|
markLine: {
|
|
markLine: {
|
|
symbol: ["none", "none"]
|
|
symbol: ["none", "none"]
|