2010-10-25 17 views
2
var vis = new pv.Panel().canvas('grphLangSpeakers').height(langCount*(barWidth+barGap)).width(canvasWidth) 
    .add(pv.Bar) 
    .data(popCountArray) 
    .bottom(0).width(function(d){ return d}) 
    .height(barWidth) 
    .top(function() {return this.index * (barGap+barWidth)}); 

vis.render(); 

我使用上述代碼使用Protovis生成條形圖。如何將此圖表更改爲對數比例?使用Protovis的對數條形圖

回答