This commit is contained in:
刘龙龙 2023-12-22 09:47:54 +08:00
parent 7573d0127d
commit 4c3bccfe0c
1 changed files with 0 additions and 68 deletions

View File

@ -179,14 +179,9 @@
</template> </template>
<script> <script>
import * as echarts from "echarts"; import * as echarts from "echarts";
<<<<<<< HEAD
import { getPie3D, getParametricEquation } from "../../../utils/fhgl";
const color = ["#099FE3", "#00DBEB", "#50F4C1"];
=======
// import "echarts-gl"; // import "echarts-gl";
// import { getPie3D, getParametricEquation } from "../../../utils/fhgl"; // import { getPie3D, getParametricEquation } from "../../../utils/fhgl";
// const color = ["#099FE3", "#00DBEB", "#50F4C1"]; // const color = ["#099FE3", "#00DBEB", "#50F4C1"];
>>>>>>> a4eafbbdba2ec2ad248c68d9a6ad642c832f8471
export default { export default {
data() { data() {
return { return {
@ -1535,63 +1530,6 @@ export default {
myChart.setOption(option, true); myChart.setOption(option, true);
}, },
<<<<<<< HEAD
//
// label
setLabel() {
this.optionData.forEach((item, index) => {
item.itemStyle = {
color: color[index],
};
item.label = {
normal: {
show: true,
color: color[index],
position: "right",
// distance:-10,
offset: [0, 3],
formatter: [
"{d|{d}%}",
"————",
// '{c|{c}}{b|}',
"{b|{b}}",
].join("\n"), // \n
rich: {
b: {
lineHeight: 25,
align: "left",
fontSize: 30,
color: "#fff",
},
c: {
fontSize: 22,
// color: '#fff',
textShadowColor: "#1c90a6",
textShadowOffsetX: 0,
textShadowOffsetY: 2,
textShadowBlur: 5,
color: color[index],
},
d: {
color: color[index],
fontSize: 40,
align: "left",
},
},
},
};
item.labelLine = {
normal: {
length2: 200,
lineStyle: {
width: 2,
color: color[index],
},
},
};
});
},
=======
// //
// label // label
// setLabel() { // setLabel() {
@ -1647,7 +1585,6 @@ export default {
// }; // };
// }); // });
// }, // },
>>>>>>> a4eafbbdba2ec2ad248c68d9a6ad642c832f8471
// // // //
// initChart() { // initChart() {
// this.statusChart = echarts.init(this.$refs.chart); // this.statusChart = echarts.init(this.$refs.chart);
@ -1827,13 +1764,8 @@ export default {
// }); // });
// }, // },
}, },
<<<<<<< HEAD
created() {
this.setLabel();
=======
created() { created() {
// this.setLabel(); // this.setLabel();
>>>>>>> a4eafbbdba2ec2ad248c68d9a6ad642c832f8471
}, },
mounted() { mounted() {
this.defineEcharts("pdsssdh", this.option1); this.defineEcharts("pdsssdh", this.option1);