Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Echart 条形图设置yaxis的splitLine的type="dashed"无效,是柱状图的时候是好的 #1051

Closed
mmangel2012 opened this issue Dec 17, 2014 · 2 comments
Labels

Comments

@mmangel2012
Copy link

@kener
option = {
title : {
text : '某地区蒸发量和降水量',
subtext : '纯属虚构'
},
tooltip : {
trigger : 'axis'
},
legend : {
data : [ '蒸发量', '降水量' ]
},
calculable : true,
xAxis : [ {
type : 'value'
}
],
yAxis : [ {
type : 'category',
data : [ '1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月',
'11月', '12月' ],
splitLine : {
lineStyle : {
color : "#FF0000",
width : 1,
type : "dashed"
}
}
}
],
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 ]
}]
};

@kener
Copy link
Contributor

kener commented Dec 17, 2014

@mmangel2012
Copy link
Author

@kener 还是有问题的,不信,你将你发给我的页面,将xaxis里面也加上axis轴上的 splitLine : {
show:true,
lineStyle: {
color: '#483d8b',
type: 'dashed',
width: "2"
}
},
然后将 xAxis :写成yAixs ,将yAxis:写成xAxis:一样显示是错误的,横向的就是实线

@kener kener added the bug label Dec 23, 2014
@kener kener closed this as completed in 2ff2741 Dec 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants