0

升级库版本后:我重构了数据标签以匹配新的功能要求,例如(但仍然不起作用):


        HIHeatmap heatmap = new HIHeatmap();
        heatmap.setName(nameSeries);
        heatmap.setData(heatmapData);
        **heatmap.setDataLabels(getDataLabels());**
        heatmap.setKeys(mKeys);
        return new ArrayList<>(Collections.singletonList(heatmap));
    }

private ArrayList<HIDataLabels> getDataLabels() {
        ArrayList<HIDataLabels> hiDataLabelsArrayList = new ArrayList<HIDataLabels>();
        HIDataLabels hiDataLabels = new HIDataLabels();
        hiDataLabels.setEnabled(true);
        hiDataLabels.setColor(HIColor.initWithHexValue("000000"));
        hiDataLabelsArrayList.add(hiDataLabels);
        return hiDataLabelsArrayList;
    }

2:HIChartView chartView = new HIChartView(mContext);

3:chartView.setSeries();

有关更多详细信息,请查看 github 上的完整问题: https ://github.com/highcharts/highcharts-android/issues/217

4

0 回答 0