vega .on事件处理程序

时间:2014-08-05 12:52:31

标签: javascript vega

.on("mouseover", function(event, item) {
  // invoke hover properties on cousin one hop forward in scenegraph
  view.update({
    props: "hover",
   items: item.cousin(1)
  });
});

这段代码来自这个链接:

https://github.com/trifacta/vega/blob/master/examples/interact/index.html

我不明白是什么

items: item.cousin(1);

我用它在vega上绘制图表。

0 个答案:

没有答案
相关问题