Format point label on XYPlot

二次信任 提交于 2019-12-31 04:37:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!