PhilJay / MPAndroidChart

A powerful 🚀 Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, panning and animations.
Other
37.65k stars 9.02k forks source link

PieChart Shadow #3602

Open ghost opened 7 years ago

ghost commented 7 years ago

Hello, i want to set a shadow on the pie chart. I am currently using this code:

pieChart.renderer.paintRender.setShadowLayer(10f, 0f, 0f, ContextCompat.getColor(context, R.color.shadow))

image

The problem I am having is that the shadow is added on the separate bars so there is a grey line in between the different colors. How can I achieve a shadow effect without these grey shadows between the separate colors?

Juxtlie commented 6 years ago

Hey. Try to use it. It can help chart.getRenderer().getPaintRender().setShadowLayer(10, 0, 24, ContextCompat.getColor(context, R.color.shadowChart)); @ If you want to add shadow to center of circle add this param to your chart chart.setHoleColor(Color.TRANSPARENT);

vkumar644 commented 4 years ago

I am also getting shadow issue. Shadow is showing well in my pie chart. But shadow overlapping on slices. on which point where two slices meet shadow is overlapping.