javascript - How to create layount elements depending on data context in protovis-js? -


i @ beautiful sample , so , can't wonder how create lemements like:

bg.add(pv.wedge)           .angle(smallangle)           .startangle(function(d) this.proto.startangle() + smallangle)           .outerradius(function(d) radius(d.penicillin))           .fillstyle(drugcolor.penicillin) 

only if d.penicillin > 0 call bg.add(pv.wedge) (so have more or less ui elements depending on data, not params)?


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -