.text(bullet.x().tickFormat());
// title
bullet.anchor(LEFT).add(PV.Label).font("12px sans-serif")
.textAlign(RIGHT).textBaseline(BOTTOM)
.text(new JsStringFunction() {
public String f(JsArgs args) {
Bullet d = args.getObject(0);
return d.title;
}
});
// subtitle
bullet.anchor(LEFT).add(PV.Label).textStyle("#616161").textAlign(RIGHT)
.textBaseline(TOP).text(new JsStringFunction() {
public String f(JsArgs args) {
Bullet d = args.getObject(0);
return d.subtitle;
}
});
// scale
bullet.anchor(RIGHT)
.add(PV.Label)
.textStyle("#616161")
.textAlign(LEFT)
.textBaseline(MIDDLE)
.text(new JsStringFunction() {
public String f(JsArgs args) {
Bullet d = args.getObject(0);
double measures = d.measures[0];
return measures > 0.00 ? String.valueOf(Double.valueOf(d.ranges[0]).longValue()) : "";
}