问题
Method described in Androidplot tutorial doesn't work with API version 1.1.0. There is no method setPointLabeler() in class LineAndPointRenderer.
回答1:
That documentation is for a very old version of Androidplot - that method has moved into LineAndPointFormatter:
LineAndPointFormatter formatter = new LineAndPointFormatter();
formatter.setPointLabeler(new PointLabeler() {
@Override
public String getLabel(XYSeries series, int index) {
// your code here
}
});
来源:https://stackoverflow.com/questions/39479010/format-point-label-on-xyplot