一、目前ehcarts 提供的官方例子里只能找到在
markline里通过itemstyle 统一控制所有的线的style
markLine : {
symbol:'none',
symbolSize:'1',
tooltip:{
showContent:true,
enterable:true,
formatter:function(){return false;}
},
[color=blue]itemStyle : {
normal: {
borderWidth:1,
lineStyle: {
type: 'solid',
color:'orange',
width:2
},
}
},[/color]
data : []
}
二、其实还可以控制每一条线的颜色,就是为data里的数据指定itenstyle
markLine : {
symbol:'none',
symbolSize:'1',
tooltip:{
showContent:true,
enterable:true,
formatter:function(){return false;}
},
itemStyle : {
normal: {
borderWidth:1,
lineStyle: {
type: 'solid',
color:'orange',
width:2
},
}
},
data : [[color=darkblue][{name:'北京'},{name:'包头',itemStyle: {
normal: {
width: 1.
markline里通过itemstyle 统一控制所有的线的style
markLine : {
symbol:'none',
symbolSize:'1',
tooltip:{
showContent:true,
enterable:true,
formatter:function(){return false;}
},
[color=blue]itemStyle : {
normal: {
borderWidth:1,
lineStyle: {
type: 'solid',
color:'orange',
width:2
},
}
},[/color]
data : []
}
二、其实还可以控制每一条线的颜色,就是为data里的数据指定itenstyle
markLine : {
symbol:'none',
symbolSize:'1',
tooltip:{
showContent:true,
enterable:true,
formatter:function(){return false;}
},
itemStyle : {
normal: {
borderWidth:1,
lineStyle: {
type: 'solid',
color:'orange',
width:2
},
}
},
data : [[color=darkblue][{name:'北京'},{name:'包头',itemStyle: {
normal: {
width: 1.