This commit is contained in:
duanxiaohai 2024-04-16 14:52:07 +08:00
parent 9aa70e38ae
commit fef474d64a
4 changed files with 38 additions and 22 deletions

View File

@ -130,6 +130,9 @@ let option = {
autoSplitNumber: 5, autoSplitNumber: 5,
}, },
}, },
axisTick: {
show: true, // x
},
}, },
yAxis: { yAxis: {
show:true, show:true,
@ -138,24 +141,25 @@ let option = {
// max:10, // max:10,
//y //y
axisLabel: { axisLabel: {
show: true ,
inside: false, inside: false,
// bargap: 0.5, // // bargap: 0.5, //
textStyle: { textStyle: {
color: "#ffffff", color: "#ffffff",
}, },
}, },
axisTick: {
show: false, // x
},
//y线 //y线
axisLine: { axisLine: {
"show":true, show:true,
lineStyle: { lineStyle: {
color: "#ffffff", color: "#ffffff",
width: 1, width: 1,
type: "solid", type: "solid",
}, },
}, },
axisTick: {
show: true, // x
},
// //
// scrollbar: { // scrollbar: {
// orient: "vertical", // orient: "vertical",

View File

@ -65,7 +65,6 @@ const option = {
color: "#ffffff", color: "#ffffff",
}, },
calculable: true, calculable: true,
// color: "rgba(0, 252, 255, 1)",
color, color,
xAxis: [ xAxis: [
{ {
@ -77,7 +76,9 @@ const option = {
color: "#ffffff", color: "#ffffff",
}, },
}, },
axisTick: {
show: false, //
},
data: ["2019", "2020", "2021", "2022", "2023"], data: ["2019", "2020", "2021", "2022", "2023"],
}, },
{ {

View File

@ -77,7 +77,9 @@ const option = {
color: "#ffffff", color: "#ffffff",
}, },
}, },
axisTick: {
show: false, //
},
data: ["4.07", "4.08", "4.09", "4.10", "4.11"], data: ["4.07", "4.08", "4.09", "4.10", "4.11"],
}, },
{ {
@ -155,6 +157,11 @@ const option = {
name: "上门服务次数", name: "上门服务次数",
data: lineData, data: lineData,
type: "line", //线 type: "line", //线
itemStyle: {
borderColor: "#00FCFF",
borderWidth: 1,
color: "#00FCFF",
},
}, },
{ {
xAxisIndex: 1, xAxisIndex: 1,

View File

@ -71,7 +71,8 @@ let option = {
// }, // },
// ], // ],
dataZoom: [ dataZoom: [
{//使 {
//使
id: "dataZoomY", id: "dataZoomY",
type: "slider", type: "slider",
yAxisIndex: [0], // y yAxisIndex: [0], // y
@ -80,10 +81,16 @@ let option = {
height: "100%", height: "100%",
right: "3%", // right: "3%", //
orient: "vertical", // 'horizontal''vertical' orient: "vertical", // 'horizontal''vertical'
// zoomLock: true, //
start: 0, // ,0 ~ 100 start: 0, // ,0 ~ 100
end: 70, // end: 70, //
handleSize: 8, zoomLock: true, //
fillerColor: "rgba(154, 181, 215, 1)", //
borderColor: "rgba(17, 100, 210, 0.12)",
backgroundColor: "#cfcfcf", //
handleSize: 0, //
showDataShadow: false, // auto
showDetail: false, //
zoomOnMouseWheel: false, // zoomOnMouseWheel: false, //
moveOnMouseWheel: true, // moveOnMouseWheel: true, //
moveOnMouseMove: true, // moveOnMouseMove: true, //
@ -144,12 +151,9 @@ let option = {
type: "solid", type: "solid",
}, },
}, },
// axisTick: {
// scrollbar: { show: false, // x
// orient: "vertical", },
// //
// height: 100,
// },
//线 //线
splitLine: { splitLine: {
show: false, show: false,