Format point label on XYPlot

前端 未结 1 573
终归单人心
终归单人心 2021-01-25 09:40

Method described in Androidplot tutorial doesn\'t work with API version 1.1.0. There is no method setPointLabeler() in class LineAndPointRenderer.

相关标签:
1条回答
  • 2021-01-25 10:08

    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
        }
    });
    
    0 讨论(0)
提交回复
热议问题