/* The root panel. */
PVPanel vis = getPVPanel().width(w).height(h).bottom(20).left(20)
.right(10).top(5);
/* The bars. */
PVBar bar = vis.add(PV.Panel).data(data).top(new JsDoubleFunction() {
public double f(JsArgs args) {
PVMark _this = args.getThis();
return y.fd(_this.index());
}
}).height(new JsDoubleFunction() {
public double f(JsArgs args) {
return y.rangeBand();
}
}).add(PV.Bar).data(new JsFunction<JsArrayNumber>() {
public JsArrayNumber f(JsArgs args) {
return args.getObject();
}
}).top(new JsDoubleFunction() {
public double f(JsArgs args) {
PVMark _this = args.getThis();
return _this.index() * y.rangeBand() / m;
}
}).height(new JsDoubleFunction() {
public double f(JsArgs args) {
return y.rangeBand() / m;
}
}).left(0).width(new JsDoubleFunction() {
public double f(JsArgs args) {
double d = args.getDouble(0);
return x.fd(d);
}
}).fillStyle(new JsFunction<PVColor>() {