我仍在使用 https://github.com/syntagmatic/parallel-coordinates#parallel-coordinates 绘制平行坐标图和 d3.js
轴重新排序后我需要更新一些东西。
因此,尝试向 parcoords 添加一个监听器,但我没有找到如何调用在重新排序轴时触发的事件。
我使用 .reorderable() 方法启用重新排序。 我试过了
parcoords.on("dimensions",function (){
alert('reorder');
});
但“尺寸”不是正确的事件,它仅在使用 .dimensions() 方法更改轴后触发。 翻了库的例子,只找到了刷机事件,翻了api描述,也没有找到合适的事件。
问题是:reorder 事件叫什么?
提前致谢
问候琼斯
最佳答案
该事件称为“axesreorder”。
它和其他事件可以在这里找到:https://github.com/syntagmatic/parallel-coordinates/blob/master/src/events.js (第一行)
关于javascript - 平行坐标上的 Axes-Reordering 事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32123010/