Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
円グラフの描画に achartengine api を使用しています。デフォルトでは、円グラフは中央に表示されますが、レイアウトの左隅に移動したいので、「setMargin()」を使用しましたが、機能しません。
PieChart自分でインスタンスを作成している場合は、チャートのcenterXとcenterYを設定してその場所を変更できます。
PieChart
centerX
centerY
PieChart chart = new PieChart(dataset, renderer); chart.setCenterX(someValue); chart.setCenterY(someValue); mChartView = new GraphicalView(context, chart);