2011-11-04 53 views

回答

0

你試過看看chart.bars嗎?這或多或少是我如何做到的:

for (var i=0, l=chart.bars.length; i<l; i++) { 
    var bar=chart.bars[i]; 
    //raphael points at an instance of g.raphael 
    bar.count_label = raphael 
    .text(bar.x - bar.w + (2*dO.padding), bar.y, bar.value || "0") 
    .attr('text-anchor', 'start') 
    .insertAfter(bar); 
}