How to set line color which in the xychart
I hava three line in the xychart , how can i change line default color
How to set line color which in the xychart
If each of your lines is a seperate series and you are using the XYLineAndShapeRenderer, use this method:
and set the paint for each of your series like so:
Code: Select all
public void setSeriesPaint(int series, Paint paint) {
setSeriesPaint(series, paint, true);
}
Code: Select all
renderer.setSeriesPaint(0, ChartColor.yellow);
renderer.setSeriesPaint(1, ChartColor.blue);
renderer.setSeriesPaint(2, ChartColor.red);