1. 在折線圖上顯示出每個點的值
((XYSeriesRenderer) renderer.getSeriesRendererAt(0)).setDisplayChartValues(true);
2. not show legend item
((XYSeriesRenderer) renderer.getSeriesRendererAt(0)).setShowLegendItem(false);
hide 紅色圈起的部分
3. 改變X, Y軸上label的color
ex:
renderer.setYLabelsColor(0, Color.BLACK);
4. 設定線條顏色
int[] colors = new int[] { Color.rgb(30, 155, 165)};
PointStyle[] styles = new PointStyle[] { PointStyle.CIRCLE };
renderer = buildRenderer(colors, styles);
5. 設定線條粗細
renderer = buildRenderer(colors, styles);
int length = renderer.getSeriesRendererCount();
for (int i = 0; i < length; i++) {
XYSeriesRenderer seriesRenderer = ((XYSeriesRenderer) renderer.getSeriesRendererAt(i));
seriesRenderer.setLineWidth(3f);
}
6. 設定point
renderer.setPointSize(10);
沒有留言:
張貼留言