2010-10-25 4 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(); 

J'utilise le code ci-dessus pour générer un diagramme à barres à l'aide de Protovis. Comment changer ce graphique en échelle logarithmique?Diagramme à barres logarithmique utilisant Protovis

Répondre

Questions connexes