This commit is contained in:
duanxiaohai 2024-04-16 13:30:03 +08:00
parent e1cb692d68
commit 1645d0ac18
2 changed files with 62 additions and 40 deletions

View File

@ -13,7 +13,7 @@ import * as echarts from "echarts";
const chart = ref(null); // DOM const chart = ref(null); // DOM
const data = ["大街乡", "社阳乡", "沐尘畲族乡", "庙下乡", "溪口镇", "罗家乡"]; const data = ["大街乡", "社阳乡", "沐尘畲族乡", "庙下乡", "溪口镇", "罗家乡"];
const datas = ["2", "4", "7", " 23", "25", "250"]; const datas = ["8", "10", "7", " 23", "25", "250"];
let zoomShow = true; let zoomShow = true;
// if (data.length > 7) { // if (data.length > 7) {
@ -38,37 +38,56 @@ let option = {
containLabel: true, containLabel: true,
color: "#ffffff", color: "#ffffff",
}, },
// dataZoom: [
// {//
// show: zoomShow,
// type: "inside",
// startValue: 0,
// endValue: 2,
// minValueSpan: 2,
// maxValueSpan: 2,
// yAxisIndex: [0],
// zoomOnMouseWheel: false, //
// moveOnMouseWheel: true, //
// moveOnMouseMove: true, //
// },
// { //使
// show: zoomShow,
// type: "slider",
// realtime: true,
// startValue: 0,
// endValue: 2,
// width: "3.5",
// height: "80%",
// yAxisIndex: [0], // y
// fillerColor: "rgba(154, 181, 215, 1)", //
// borderColor: "rgba(17, 100, 210, 0.12)",
// backgroundColor: "#cfcfcf", //
// handleSize: 0, //
// showDataShadow: false, // auto
// showDetail: false, //
// top: "1%",
// right: "5",//
// },
// ],
dataZoom: [ dataZoom: [
{ {//使
show: zoomShow, id: "dataZoomY",
type: "inside", type: "slider",
startValue: 0, yAxisIndex: [0],// y
endValue: 2, filterMode: "empty",//,
minValueSpan: 2, width: "10",
maxValueSpan: 2, height: "100%",
yAxisIndex: [0], right: "3%",//
orient: "vertical" ,// 'horizontal''vertical'
// zoomLock: true, //
start: 0,// ,0 ~ 100
end: 70,//
handleSize: 8,
zoomOnMouseWheel: false, // zoomOnMouseWheel: false, //
moveOnMouseWheel: true, // moveOnMouseWheel: true, //
moveOnMouseMove: true, // moveOnMouseMove: true, //
}, },
{
show: zoomShow,
type: "slider",
realtime: true,
startValue: 0,
endValue: 2,
width: "3.5",
height: "80%",
yAxisIndex: [0], // y
fillerColor: "rgba(154, 181, 215, 1)", //
borderColor: "rgba(17, 100, 210, 0.12)",
backgroundColor: "#cfcfcf", //
handleSize: 0, //
showDataShadow: false, // auto
showDetail: false, //
top: "1%",
right: "5",
},
], ],
calculable: true, calculable: true,
xAxis: { xAxis: {
@ -98,6 +117,11 @@ let option = {
width: 1, width: 1,
}, },
}, },
axisPointer: {
label: {
autoSplitNumber: 5,
},
},
}, },
yAxis: { yAxis: {
type: "category", // type: "category", //
@ -106,7 +130,7 @@ let option = {
//y //y
axisLabel: { axisLabel: {
inside: false, inside: false,
bargap: 0.5, // // bargap: 0.5, //
textStyle: { textStyle: {
color: "#ffffff", color: "#ffffff",
}, },
@ -121,11 +145,11 @@ let option = {
}, },
}, },
// //
scrollbar: { // scrollbar: {
orient: "vertical", // orient: "vertical",
// // //
height: 100, // height: 100,
}, // },
//线 //线
splitLine: { splitLine: {
show: false, show: false,

View File

@ -31,8 +31,8 @@
<ePie v-if="leftchoose.first == '1'"></ePie> <ePie v-if="leftchoose.first == '1'"></ePie>
<ePie2 v-else></ePie2> <ePie2 v-else></ePie2>
</div> </div>
<div class="flex1" style="margin-top:10px;"> <div class="flex1" style="margin-top: 10px">
<div class="yd_title left_2" > <div class="yd_title left_2">
<span class="text"> <span class="text">
<img <img
v-if="leftchoose.second == '1'" v-if="leftchoose.second == '1'"
@ -61,7 +61,7 @@
<eP2 v-if="leftchoose.second == '1'"></eP2> <eP2 v-if="leftchoose.second == '1'"></eP2>
<eP2_2 v-else /> <eP2_2 v-else />
</div> </div>
<div class="flex1" style="margin-top:10px;"> <div class="flex1" style="margin-top: 10px">
<div class="yd_title left_3"> <div class="yd_title left_3">
<span class="text"> <span class="text">
<img <img
@ -106,10 +106,7 @@
</div> </div>
<div class="flex1"> <div class="flex1">
<div class="yd_title familyPlanning"></div> <div class="yd_title familyPlanning"></div>
<!-- 计划生育 -->
<!-- <div style="width: 100%; "> -->
<ylJHSY></ylJHSY> <ylJHSY></ylJHSY>
<!-- </div> -->
</div> </div>
</div> </div>
<div class="displayFlex right_bg"> <div class="displayFlex right_bg">
@ -474,9 +471,10 @@ const change = (name, index) => {
} }
.history { .history {
padding-top: 12px; height: calc(100% - 36px);
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
align-items: center;
.history1 { .history1 {
font-size: 26px; font-size: 26px;
color: #ffffff; color: #ffffff;