customizing Piechart displayed by using ChartEngine

前端 未结 1 876
时光说笑
时光说笑 2021-01-26 07:29

I am successfully displaying charts by using Chart Engine but I am suffering from below problems:

  1. I am unable to reduce the Chart Size.
  2. Chart is moving on
1条回答
  •  时光说笑
    2021-01-26 07:47

    You can set the margins by using:

    defaultRenderer.setMargins(margins);
    

    You can disable panning this way:

    defaultRenderer.setPanEnabled(false, false);
    

    You can create a chart in a view and embed it inside an activity that you define the layout for, see this.

    0 讨论(0)
提交回复
热议问题