I looked into this a bit and found that you might be able to achieve
the same result with something similar to this:
vis.add(PV.Layout.Stack()).layers(data).x(new JsDoubleFunction() {
public double f(JsArgs args) {
return x.fd(args.<PVBar> getThis().index());
}
}).y(new JsDoubleFunction() {
public double f(JsArgs args) {
double d = args.getDouble();
return y.fd(d);
}
}).layer().add(PV.Bar).data(new JsFunction<JsArrayNumber>() {
public JsArrayNumber f(JsArgs args) {
return args.getObject();
}
}).width(new JsDoubleFunction() {
public double f(JsArgs args) {
return x.rangeBand();
}
}).height(new JsDoubleFunction() {
public double f(JsArgs args) {
return y.fd(args.getDouble());
}
});
Hope that helps,
Lars
> --
> You received this message because you are subscribed to the Google Groups "Choosel" group.
> To post to this group, send email to cho...@googlegroups.com.
> To unsubscribe from this group, send email to choosel+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/choosel?hl=en.
>
--
Lars Grammel
PhD Candidate, The CHISEL Group, University of Victoria
http://larsgrammel.de
http://twitter.com/lgrammel