MPAndroidChart - Why BarData constructor not work?

前端 未结 4 1279
攒了一身酷
攒了一身酷 2021-01-20 01:40

My code:

 public BarData getBarData(String fieldName) {
        ArrayList entries = new ArrayList<>();
        entries.add(new BarEntry         


        
4条回答
  •  独厮守ぢ
    2021-01-20 02:21

    Using the newest version (3.0.0-beta1) of MPAndroidChart?

    The constructor of this class has changed:

    public BarData(List dataSets) {
        super(dataSets);
    }
    

    This commit has removed X-axis labels.

    Look into this example as it provides a new way to use a library.

提交回复
热议问题