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

F2 平移交互 #201

Closed
cy920820 opened this issue Jul 20, 2018 · 4 comments
Closed

F2 平移交互 #201

cy920820 opened this issue Jul 20, 2018 · 4 comments
Assignees

Comments

@cy920820
Copy link

F2平移目前只是支持x轴是数字的么,比如人员姓名呢? 不可以平移么?

@simaQ simaQ self-assigned this Jul 20, 2018
@simaQ simaQ added bug and removed bug labels Jul 20, 2018
@simaQ
Copy link
Contributor

simaQ commented Jul 20, 2018

可以的,参考这个 demo,需要配合列定义,写了个简单的 demo:

https://codepen.io/Sima/pen/vayQgo

目前如果是折线图或者区域图的话,需要加一个加一个 sortable: false,这个问题我修复下,你先通过设置 sortable 解决

chart.line({
  sortable: false
})

@cy920820
Copy link
Author

我这边是柱状图,还好,但是视图左右边界的两项柱状图并没有显示完全,而是显示一半,这个文档里有解决方案么?

@simaQ
Copy link
Contributor

simaQ commented Jul 20, 2018

把 range: [0, 1] 配置删除即可。

image

@cy920820
Copy link
Author

@simaQ 感谢 ~

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