I can set the gradient of the PieChart's slices by doing:
Shader shader = new RadialGradient(80, 80, 80, new int[]{ContextCompat.getColor(this, R.color.colorBronze), Color.parseColor("#FFFFFF")}, null, Shader.TileMode.MIRROR); chart.getRenderer().getPaintRender().setShader(shader);
The problem is that ALL slices then have this gradient.
Is it possible to set only one slice to have the gradient?
I can set the gradient of the PieChart's slices by doing:
Shader shader = new RadialGradient(80, 80, 80, new int[]{ContextCompat.getColor(this, R.color.colorBronze), Color.parseColor("#FFFFFF")}, null, Shader.TileMode.MIRROR); chart.getRenderer().getPaintRender().setShader(shader);The problem is that ALL slices then have this gradient.
Is it possible to set only one slice to have the gradient?