.strokeStyle(new JsStringFunction() {
public String f(JsArgs args) {
double d = args.getDouble(0);
return d != 0 ? "#eee" : "#000";
}
}).anchor(LEFT).add(PV.Label).visible(new JsBooleanFunction() {
public boolean f(JsArgs args) {
double d = args.getDouble(0);
return d > 0 && d < 1;
}
}).text(y.tickFormat());
/* X-axis and ticks. */
vis.add(PV.Rule).data(x.ticks()).left(x)
.strokeStyle(new JsStringFunction() {
public String f(JsArgs args) {
double d = args.getDouble(0);
return d != 0 ? "#eee" : "#000";
}
}).anchor(BOTTOM).add(PV.Label)
.visible(new JsBooleanFunction() {
public boolean f(JsArgs args) {
double d = args.getDouble(0);
return d > 0 && d < 100;
}
}).text(x.tickFormat());