Get rid of Pie chart shadow

Hi
I’d like flat design so the shadow of the pie chart is so annoying there is no option in properties editor.
Is anyone know how to hide shadow?

Thanks

This will sound counter intuitive but set the chart to 3D Pie and then set 3D Depth to 0

2 Likes

Thanks it works but how i can hide these lines?

set the outline stroke to zero to remove the lines in the ‘pie’

to remove, the border, I’ve used this as the porpertyChange script of the chart:

from java.awt import Color
c = Color(128,128,128,0)
event.source.getChart().getPlot().setOutlinePaint(c)

I set the outline stroke to zero but didn’t work.
For the script it only work only if I change something in properties.

Here’s what I have in a property change script on a chart. Note that the script generally won’t run in designer, but you’ll see the effects in a running client.

For what it’s worth, this is on a ring chart (not 3D). Within the property editor for the chart, the outline stroke is 0.0 and the outline color is clear.

if event.propertyName in ["componentRunning", "data"]:
	
	chart = event.source.getChart()
	plot = chart.getPlot()
	
	# Hide the chart decorations
	plot.setSeparatorsVisible(False)
	plot.setShadowPaint(None)
	plot.setOutlineVisible(False)
2 Likes

Have a read:

3 Likes