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

是否有开箱即用的平均线(限位线,参考线) #249

Closed
somax opened this issue Mar 17, 2014 · 3 comments
Closed

是否有开箱即用的平均线(限位线,参考线) #249

somax opened this issue Mar 17, 2014 · 3 comments

Comments

@somax
Copy link

somax commented Mar 17, 2014

目前用markLine有些些不方便,一个是需要定义两个值,另外两个头是对其柱状图的中线看着有点别扭。
另外markLine的symbol设成‘none’貌似还是方块
补充一下:我说的这些线是指只有一个值的水平线

@kener
Copy link
Contributor

kener commented Mar 17, 2014

通用性考虑其实是不区分水平还是垂直的,线还是定义两个点吧,水平其实也有长短的差别,而且不一定就只用在直角系里。看着别扭的问题,尝试把线换成虚线,线条变细小看看。
markLine symbol 为none是个bug,最新代码已经修复,谢谢反馈~

@kener
Copy link
Contributor

kener commented Mar 17, 2014

才看到标题,针对直角系的,计划中确实有自动均线、极值线的升级,关注后续升级吧

kener added a commit that referenced this issue Mar 18, 2014
kener added a commit that referenced this issue Mar 19, 2014
@kener
Copy link
Contributor

kener commented Mar 19, 2014

直角系 line/bar/scatter 支持markPoint、markLine特殊值自动标注
markPoint : {
data : [
{type : 'max'},
{type : 'min'}
]
},
markLine : {
data : [
{type : 'average', valueIndex : 0}, // valueIndex为scattter特有,默认为1,纵轴均值
[{type : 'min'}, {type : 'max'}] // 支持特殊点作为markLine的任意一点
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants