Javascript 在条形图上添加标签Raphael

Javascript 在条形图上添加标签Raphael,javascript,raphael,labels,Javascript,Raphael,Labels,我想为条形图中的每个条形图添加一个标签,以便为每个条形图生成一个dinamic链接。属性(href:)http://site.com/label“。当我调用label()方法调试程序时,告诉我intern方法不存在 这是我对为条形图添加标签的呼吁: paper.barchart(x, y, sizeX, sizeY, date, attr).hover(fin, fout).attr({opacity: .5}).label(["positive", "negative", "neutre",

我想为条形图中的每个条形图添加一个标签,以便为每个条形图生成一个dinamic链接。属性(href:)http://site.com/label“。当我调用label()方法调试程序时,告诉我intern方法不存在

这是我对为条形图添加标签的呼吁:

paper.barchart(x, y, sizeX, sizeY, date, attr).hover(fin, fout).attr({opacity: .5}).label(["positive", "negative", "neutre", ""], date);
这是firebug的错误

    l.labelise is not a function
label(y=["positive", "negative", "neutre", ""], Z=[41, 33, 26, 100])g.bar-min.js (line 7)
chartBar(paper=a { customAttributes={...}, ca={...}, width=900, more...}, x=550, y=680, sizeX=100, sizeY=150, date=[41, 33, 26, 100])slider.js (line 267)
textSlider()slider.js (line 337)
f(b=Document details.html, f=[function()])jquery-1.7.min.js (line 2)
f(b=Document details.html, c=[function()])jquery-1.7.min.js (line 2)
f(a=undefined)jquery-1.7.min.js (line 2)
f()jquery-1.7.min.js (line 2)
[Break On This Error] (function(){var f=Math.min,a=Math.max;...){return new d(this,h,l,j,g,i,k)}})();
g.bar-min.js (line 7)
这似乎是库中的一个错误。知道为每个条生成dinamic链接的方法吗

稍后编辑:


谢谢!

我找到的解决方案如下:

paper.barchart(/*parameters*/).each(function (){
          this.attr({ href: "your/address" }); 
})

L.E.:

我找到的解决方案如下:

paper.barchart(/*parameters*/).each(function (){
          this.attr({ href: "your/address" }); 
})
L.E.: