我是android的新手。如何旋转绘图标签?我能够在轴上旋转标签。我正在使用achartengine。有人可以帮忙吗?
public class SimpleChartExample extends Activity {
private GraphicalView mChartView;
XYMultipleSeriesRenderer renderer;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.layoutlinechart);
...
...
int[] colors = new int[] { Color.BLUE,Color.RED};
PointStyle[] styles = new PointStyle[] { PointStyle.CIRCLE,PointStyle.CIRCLE};
renderer = buildRenderer(colors, styles);
renderer.setXLabels(12);
renderer.setYLabels(10);
renderer.setShowGrid(false);
renderer.setXLabelsAlign(Align.CENTER);
renderer.setYLabelsAlign(Align.CENTER);
...
}
}
如上面的代码片段所示,我能够配置图表X,Y轴等,我也可以绘制值。但是如何设置绘图值的旋转角度?