Beispiel #1
0
  private void chartPieRender() {
    try {
      // 标签显示(隐藏,显示在中间,显示在扇区外面)
      chartPie.setLabelStyle(XEnum.SliceLabelStyle.INSIDE);
      chartPie.getLabelPaint().setColor(Color.WHITE);

      chartPie.setDataSource(chartDataPie);

      chartPie.getPlotLegend().hide();

    } catch (Exception e) {
      // TODO Auto-generated catch block
      Log.e(TAG, "chartPieRender():" + e.toString());
    }
  }