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

[enhancement]关于图表的视图布局 #866

Closed
appleskiller opened this issue Nov 8, 2014 · 1 comment
Closed

[enhancement]关于图表的视图布局 #866

appleskiller opened this issue Nov 8, 2014 · 1 comment

Comments

@appleskiller
Copy link

浏览#856 所提到的问题时,我有更多的思考。

能够看到echarts使用多canvas的思路完成渲染,这很优秀。但在整张图表的视图布局上确有瑕疵,比如上面兄弟提到的问题。我接茬也提几个:
1.增加xAixs、yAixs、legend的{show:true|false}属性
2.在各部件隐藏后,数据区能够自适应父容器
3.别指望通过set其他option完成以上2点,我作为用户不接受,因为会让我的实现看起来很挫。

总之一句话,请增加视图布局实现

@kener
Copy link
Contributor

kener commented Nov 10, 2014

1、axis的show已经可以细粒度的控制每一个组成了,多加一个总控的show可以,但不是必须的。legend可以考虑加入,虽然目前的做法是直接不要这个节点就可以不显示了。
2、grid本身就是作为直角系的主要布局参数(也支持边界值的百分比),组件也没要求必须分开的(如图例其实是可以在gird内部的),最开始是grid自适应留空,但效果并不理想,耦合其他组件的布局,而我们的项目里设计稿中是明确组件是否存在,边界留空应该是多少,所以直接交给用户自己定义grid了。
3、有人喜欢让别人控制,有人愿意自己来,这个没办法。

谢谢反馈。

kener added a commit that referenced this issue Nov 13, 2014
kener added a commit that referenced this issue Nov 13, 2014
kener added a commit that referenced this issue Nov 13, 2014
@kener kener closed this as completed in 90f1215 Nov 13, 2014
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