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 data = ["大街乡", "社阳乡", "沐尘畲族乡", "庙下乡", "溪口镇", "罗家乡"];
const datas = ["2", "4", "7", " 23", "25", "250"];
const datas = ["8", "10", "7", " 23", "25", "250"];
let zoomShow = true;
// if (data.length > 7) {
@ -38,37 +38,56 @@ let option = {
containLabel: true,
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: [
{
show: zoomShow,
type: "inside",
startValue: 0,
endValue: 2,
minValueSpan: 2,
maxValueSpan: 2,
yAxisIndex: [0],
{//使
id: "dataZoomY",
type: "slider",
yAxisIndex: [0],// y
filterMode: "empty",//,
width: "10",
height: "100%",
right: "3%",//
orient: "vertical" ,// 'horizontal''vertical'
// zoomLock: true, //
start: 0,// ,0 ~ 100
end: 70,//
handleSize: 8,
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",
},
],
calculable: true,
xAxis: {
@ -98,6 +117,11 @@ let option = {
width: 1,
},
},
axisPointer: {
label: {
autoSplitNumber: 5,
},
},
},
yAxis: {
type: "category", //
@ -106,7 +130,7 @@ let option = {
//y
axisLabel: {
inside: false,
bargap: 0.5, //
// bargap: 0.5, //
textStyle: {
color: "#ffffff",
},
@ -121,11 +145,11 @@ let option = {
},
},
//
scrollbar: {
orient: "vertical",
//
height: 100,
},
// scrollbar: {
// orient: "vertical",
// //
// height: 100,
// },
//线
splitLine: {
show: false,

View File

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