【发布时间】:2011-10-12 02:35:37
【问题描述】:
我在我的图表上喝醉了。 mouseover 事件运行良好,但是当我添加 click 事件时,它并没有按照我的意愿执行 click 事件。
下面是我的代码:
var vis = new pv.Panel()
.width(w)
.height(h);
vis.add(pv.Bar)
.data(data)
.width(4)
.left(function() 5 * this.index)
.height(function(d) Math.round(d*4))
.bottom(0)
.text(function(d) d.toFixed(1))
.event("mouseover", pv.Behavior.tipsy({gravity: "w", fade: true}))
//If I remove the mouseover event, the click event will work but not when both are veing put together.
.event("click", function() self.location = "http://stanford.edu");
vis.render();
谁能帮我解决这个问题?
【问题讨论】:
标签: javascript jquery jquery-events tipsy protovis