# Get rid of Pie chart shadow

**URL:** <https://forum.inductiveautomation.com/t/get-rid-of-pie-chart-shadow/19544>\
**Category:** Ignition\
**Created:** [September 5, 2018, 1:21pm UTC](https://forum.inductiveautomation.com/t/get-rid-of-pie-chart-shadow/19544 "2018-09-05T13:21:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [September 5, 2018, 1:21pm UTC](https://forum.inductiveautomation.com/t/get-rid-of-pie-chart-shadow/19544/1 "2018-09-05T13:21:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [September 5, 2018, 2:04pm UTC](https://forum.inductiveautomation.com/t/get-rid-of-pie-chart-shadow/19544/2 "2018-09-05T14:04:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [September 5, 2018, 2:49pm UTC](https://forum.inductiveautomation.com/t/get-rid-of-pie-chart-shadow/19544/3 "2018-09-05T14:49:29Z")

</div>

> [@MMaynard](#):
>
> counter

Thanks it works but how i can hide these lines?

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/23b68f65c5dac7a9c1dd4a7818cdb4c95bf5f4e7.png)

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [September 5, 2018, 3:06pm UTC](https://forum.inductiveautomation.com/t/get-rid-of-pie-chart-shadow/19544/4 "2018-09-05T15:06:26Z")

</div>

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:

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

```

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [September 5, 2018, 4:03pm UTC](https://forum.inductiveautomation.com/t/get-rid-of-pie-chart-shadow/19544/5 "2018-09-05T16:03:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![chris3145](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@chris3145](https://forum.inductiveautomation.com/u/chris3145)\
**Post date:** [September 5, 2018, 6:29pm UTC](https://forum.inductiveautomation.com/t/get-rid-of-pie-chart-shadow/19544/6 "2018-09-05T18:29:53Z")

</div>

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.

```auto
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)

```

---

<div class="post-metadata">

**Author:** ![Paullys50](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paullys50/32/3324_2.png) [@Paullys50](https://forum.inductiveautomation.com/u/Paullys50)\
**Post date:** [September 5, 2018, 7:18pm UTC](https://forum.inductiveautomation.com/t/get-rid-of-pie-chart-shadow/19544/7 "2018-09-05T19:18:09Z")

</div>

Have a read:

> **[Tips for Using Python in Ignition SCADA Software](https://www.vertech.com/blog/tips-for-using-python-in-ignition-scada)**
>
> Tips for using the Jython implementation of Python with Inductive Automation Ignition SCADA software.

---

<div class="post-metadata">

**Author:** ![andreia\_chiurato](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@andreia\_chiurato](https://forum.inductiveautomation.com/u/andreia_chiurato)\
**Post date:** [April 29, 2022, 10:57am UTC](https://forum.inductiveautomation.com/t/get-rid-of-pie-chart-shadow/19544/8 "2022-04-29T10:57:48Z")

</div>

Hi, I did like this tip, but give an error, can you help me please?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/c/2c7e3435e6e8a17f1c8e985c8cf0319f983145d2.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/c/dcbba1f6ae584cfdb09ac2e42bc4757334c56273.png)

```auto
Traceback (most recent call last):
  File "<event:visionWindowOpened>", line 2, in <module>
TypeError: getComponent(): 1st arg can't be coerced to int

	at org.python.core.Py.TypeError(Py.java:236)
	at org.python.core.PyReflectedFunction.throwError(PyReflectedFunction.java:213)
	at org.python.core.PyReflectedFunction.throwBadArgError(PyReflectedFunction.java:316)
	at org.python.core.PyReflectedFunction.throwError(PyReflectedFunction.java:325)
	at org.python.core.PyReflectedFunction. __call__ (PyReflectedFunction.java:171)
	at org.python.core.PyReflectedFunction. __call__ (PyReflectedFunction.java:208)
	at org.python.core.PyObject. __call__ (PyObject.java:477)
	at org.python.core.PyObject. __call__ (PyObject.java:481)
	at org.python.core.PyMethod. __call__ (PyMethod.java:141)
	at org.python.pycode._pyx25.f$0(<event:visionWindowOpened>:10)
	at org.python.pycode._pyx25.call_function(<event:visionWindowOpened>)
	at org.python.core.PyTableCode.call(PyTableCode.java:173)
	at org.python.core.PyCode.call(PyCode.java:18)
	at org.python.core.Py.runCode(Py.java:1687)
	at com.inductiveautomation.ignition.common.script.ScriptManager.runCode(ScriptManager.java:806)
	at com.inductiveautomation.factorypmi.application.binding.action.ActionAdapter.runActions(ActionAdapter.java:206)
	at com.inductiveautomation.factorypmi.application.binding.action.ActionAdapter.invoke(ActionAdapter.java:297)
	at com.inductiveautomation.factorypmi.application.binding.action.RelayInvocationHandler.invoke(RelayInvocationHandler.java:57)
	at com.sun.proxy.$Proxy51.visionWindowOpened(Unknown Source)
	at com.inductiveautomation.factorypmi.application.FPMIWindow.fireVisionWindowOpened(FPMIWindow.java:711)
	at com.inductiveautomation.factorypmi.application.VisionDesktop$RuntimeWindowOpener.openWindow(VisionDesktop.java:545)
	at com.inductiveautomation.factorypmi.application.VisionDesktop.openWindow(VisionDesktop.java:188)
	at com.inductiveautomation.factorypmi.application.script.builtin.NavUtilities.lambda$openWindowImpl$5(NavUtilities.java:393)
	at com.inductiveautomation.factorypmi.application.script.builtin.WindowUtilities.doGUIAction(WindowUtilities.java:808)
	at com.inductiveautomation.factorypmi.application.script.builtin.NavUtilities.openWindowImpl(NavUtilities.java:336)
	at com.inductiveautomation.factorypmi.application.script.builtin.NavUtilities.openWindow(NavUtilities.java:326)
	at com.inductiveautomation.factorypmi.application.script.builtin.NavUtilities.swapTo(NavUtilities.java:115)
	at com.inductiveautomation.factorypmi.application.script.builtin.NavUtilities.swapTo(NavUtilities.java:92)
	at com.inductiveautomation.factorypmi.application.components.tabstrip.PMITabStrip.setSelectedTab(PMITabStrip.java:482)
	at com.inductiveautomation.factorypmi.application.components.tabstrip.TabHolderPanel.mousePressed(TabHolderPanel.java:243)
	at java.desktop/java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
	at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
	at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.Component.processEvent(Unknown Source)
	at java.desktop/java.awt.Container.processEvent(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

Ignition v8.1.10 (b2021090812)
Java: Azul Systems, Inc. 11.0.11

```

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 29, 2022, 2:00pm UTC](https://forum.inductiveautomation.com/t/get-rid-of-pie-chart-shadow/19544/9 "2022-04-29T14:00:43Z")

</div>

You are using in a **window event** a script intended for an event on a button or other component that is a **sibling** of the chart. So, `event.source.parent` isn’t the right hierarchy. You probably want `event.source.rootContainer` in its place.

Tip: Use the property search wizard in the upper right to help you construct the python to reference other components.
