export default {
linearMarkArea:{
tooltip: {
trigger: "axis",
axisPointer: {
type: "cross"
}
},
grid: {
left: 35,
top: 30,
bottom: 20
},
xAxis: {
type: "category",
axisLine: {
show: true,
lineStyle: {
"color": "#D9D9D9"
}
},
boundaryGap: false,
data: null
},
yAxis: {
type: "value",
axisLine: {
show: true,
lineStyle: {
color: "#D9D9D9"
}
},
axisLabel: {
formatter: "{value} "
},
axisPointer: {
"snap": true
},
axisTick: {
show: false,
},
axisLabel: {
show: true,
},
splitLine: {
show: false,
},
splitArea: {
show: false,
}
},
series: [
{
name: "房价",
type: "line",
label:{
color:'#FF9800'
},
itemStyle:{
color:'#FF9800'
},
smooth: true,
data: null
},
{
name:'',
type:'line',
markLine: {
name:'房价平均线',
lineStyle: {
type: 'dotted',
color: '#FF9800'
},
label: {
position: 'end',
formatter:'平均值'
},
data: null
}
}
]
},
hBar:{
textStyle: {
fontSize: 12,
color: '#D9D9D9'
},
grid: {
left: 35,
top: 10,
bottom: 65
},
xAxis: {
show: true,
type: 'category',
axisLine: {
show:true,
lineStyle: {
color: '#D9D9D9'
}
},
nameRotate:15,
data: null,
axisTick: {
show: false,
color:'red'
},
axisLabel: {
show: true,
interval:0,//横轴信息全部显示
rotate:30,//-30度角倾斜显示
},
splitLine: {
show: false,
},
splitArea: {
show: false,
}
},
yAxis: {
show: true,
type: 'value',
axisLine: {
show: true,
lineStyle: {
color: '#D9D9D9'
}
},
axisTick: {
show: false,
},
axisLabel: {
show: false,
},
splitLine: {
show: false,
},
splitArea: {
show: false,
},
},
series : [
{
type:'bar',
barWidth: 10,
data: null,
itemStyle: {
color: '#FF9800'
},
},
]
},
vBar:{
textStyle: {
fontSize: 12,
color: '#D9D9D9'
},
grid: {
left: 35,
top: 10,
bottom: 10
},
xAxis: {
show: true,
type: 'value',
axisLine: {
show:true,
lineStyle: {
color: '#D9D9D9'
}
},
axisTick: {
show: false,
},
axisLabel: {
show: false,
},
splitLine: {
show: false,
},
splitArea: {
show: false,
}
},
yAxis: {
show: true,
type: 'category',
axisLine: {
show: true,
lineStyle: {
color: '#D9D9D9'
}
},
axisTick: {
show: false,
},
axisLabel: {
show: true,
},
splitLine: {
show: false,
},
splitArea: {
show: false,
},
data: null // y轴数据
},
series: [
{
data: null, // seriesData
type: 'bar',
barWidth: 10,
itemStyle: {
color: '#FF9800'
},
label: {
show: true,
color: '#FF9800',
position: 'right',
formatter: (v) => {
return `${v.value}`
},
}
}
]
}
}