Echarts中 标注线的情况
option = {
xAxis: [
{
type: 'value',
data: [1,2,3,4,5,6,7,8,9,10,11,12]
}
],
yAxis: [
{
type: 'value'
}
],
series: [
{
name: '蒸发量',
type: 'bar',
data: [2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3],
markLine: {
data: [
[
{
"name":"画斜线",
"coord":[
60,
0],
"lineStyle":{
"normal":{
"color":"#2d3133"
}
}
},
{
"coord":[
30,
150],
}
],
[
{
"name":"画直线",
"coord":[
80,
0],
"lineStyle":{
"normal":{
"color":"#2d3133"
}
}
},
{
"coord":[
80,
170],
}],
[
{
"name":"画横线",
"coord":[
0,
92],
"symbolSize":"0",
"lineStyle":{
"normal":{
"color":"#2d3133"
}
}
},
{
"coord":[
120,
92],
"symbolSize":"0"
}],
],
}
},
]
};