parent
9f99672df8
commit
5b7bf08360
@ -0,0 +1,72 @@
|
||||
// 折线
|
||||
export default function brokenLine(dName=[],dValue=[] ,dColor=[],dx=[]){
|
||||
return{
|
||||
grid:{
|
||||
left:30,
|
||||
top:25,
|
||||
height:146,
|
||||
width:323
|
||||
},
|
||||
yAxis: [
|
||||
{
|
||||
type: 'value',
|
||||
axisTick:{
|
||||
show:false //去除刻度线
|
||||
},
|
||||
axisLine:{
|
||||
show:false //去除轴线
|
||||
},
|
||||
axisLabel: {
|
||||
color: '#999999',//y轴文本颜色
|
||||
textStyle: {
|
||||
fontSize : 9
|
||||
}
|
||||
},
|
||||
splitLine: { //分割线
|
||||
// lineStyle:{
|
||||
// // color:"#2d3436"
|
||||
|
||||
// }
|
||||
show: true,
|
||||
lineStyle: {
|
||||
type: 'dashed',
|
||||
color: '#E8E8E8',
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
xAxis: [
|
||||
{
|
||||
type: 'category',
|
||||
data: dx,
|
||||
axisTick:{
|
||||
show:false //去除刻度线
|
||||
},
|
||||
axisLine:{
|
||||
show:false, //去除轴线
|
||||
},
|
||||
axisLabel: {
|
||||
color: '#999999',//x轴文本颜色
|
||||
textStyle: {
|
||||
fontSize : 9
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
series:{
|
||||
type: 'line',
|
||||
symbol:'none', //去圆点
|
||||
data: dValue,
|
||||
itemStyle: {
|
||||
normal:{
|
||||
color: '#0084FF',
|
||||
lineStyle: {
|
||||
color: '#0084FF'
|
||||
}
|
||||
}
|
||||
}}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in new issue