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

title,字数较多,能换行显示吗 #165

Closed
mnisummer opened this issue Dec 18, 2013 · 5 comments
Closed

title,字数较多,能换行显示吗 #165

mnisummer opened this issue Dec 18, 2013 · 5 comments

Comments

@mnisummer
Copy link

如果在title : {text:"xxxxx"}中,text有很多内容,我想控制每行的字符数,使之换行显示,控制换行吗?

@kener
Copy link
Contributor

kener commented Dec 18, 2013

抱歉,不支持

@DDDBear
Copy link

DDDBear commented Dec 25, 2013

借地方说差不多的问题。我现在把字数过多的title都截断显示了,但是有一个问题,截断以后,有些title就一样了,但好像echart对于title一样的数据会做unique处理,导致有些数据显示不出来了。是我使用的姿势不对么?

@kener
Copy link
Contributor

kener commented Dec 25, 2013

?没懂,上个图?

@DDDBear
Copy link

DDDBear commented Dec 25, 2013

qq20131225153433
红框部分是因为title一样而没显示出来的数据

顺便我们也有文字很长的情况,而且目测会很普遍,是否考虑做下支持?

@kener
Copy link
Contributor

kener commented Dec 26, 2013

轴文字分行就不好计算自动隐藏的间隔了,可能导致的疑惑更大,而且就图表设计来说,过长的类目文字并不合适,因而实现之初并未考虑支持,支持标签旋转也是权衡的妥协,其实旋转本身也是被权威诟病的呈现方式,但确实是无奈之举,呈现日期类目很多时候只能旋转以放下更多的信息。
至于类目轴的data出现重复时后面的数据没显示是已知的,其实不是没显示,是都显示在第一个重复项所在的。原希望在重复数据时外部使用方自己做个map解决,但发现反馈的确实比较多。下个版本自动做这个工作解决类目重复项的问题吧,谢谢反馈~

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

3 participants