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

能够增加随时间走,但不进行排序 #98

Open
LeiZou opened this issue Sep 25, 2019 · 3 comments
Open

能够增加随时间走,但不进行排序 #98

LeiZou opened this issue Sep 25, 2019 · 3 comments

Comments

@LeiZou
Copy link

LeiZou commented Sep 25, 2019

能否在随时间增长的过程中,柱子放下移,但不对柱子的Value进行排序,机制是跟进时间走的,最后的效果就是柱子的长度是不一的。

@CorgyBigData
Copy link

柱子排序的代码在visual.js文件的48~54行 data.sort()函数 注释掉 即可实现不排序。

@LeiZou
Copy link
Author

LeiZou commented Nov 20, 2019

注释掉48~54行 data.sort()函数,还是不行

@CorgyBigData
Copy link

CorgyBigData commented Nov 20, 2019

我忘记说了一点 还有一个排序函数 dataSort() 在第223行,这个函数会影响数据出现的位置。两个选择:1 注释掉方法体 2 注释掉整个方法 和 295行的调用;如果需要柱子长度有明显差别(严格符合标尺),请将 config.js中的big_value属性设置为false,我可能大概明白你的需求,虽然简单但是这个框架的思路并不是用来做这个的,而且数据也需要大量重复准备并排序1~2次。见齐还有一个https://www.bilibili.com/video/av35814989 视频,这个视频模板可能更符合你的需求(也更符合我的需求233),但是没有开源。我也是今天才开始看D3的,也是个小白= =

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