# Remove shadow from report pie chart

**URL:** <https://forum.inductiveautomation.com/t/remove-shadow-from-report-pie-chart/59961>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [May 24, 2022, 3:12pm UTC](https://forum.inductiveautomation.com/t/remove-shadow-from-report-pie-chart/59961 "2022-05-24T15:12:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [May 24, 2022, 3:12pm UTC](https://forum.inductiveautomation.com/t/remove-shadow-from-report-pie-chart/59961/1 "2022-05-24T15:12:05Z")

</div>

I would like to remove the shadow from a report pie chart. Is this possible?

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/4/74d6b2b1c73671393ef22042679829041439425c.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 24, 2022, 3:26pm UTC](https://forum.inductiveautomation.com/t/remove-shadow-from-report-pie-chart/59961/2 "2022-05-24T15:26:41Z")

</div>

Through `configureChart`, many things are possible.

Some tips here:

> [@Get rid of Pie chart shadow](https://forum.inductiveautomation.com/t/get-rid-of-pie-chart-shadow/19544):
>
> 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:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [May 24, 2022, 3:29pm UTC](https://forum.inductiveautomation.com/t/remove-shadow-from-report-pie-chart/59961/3 "2022-05-24T15:29:31Z")

</div>

I was looking for where that is exposed and I can’t find it on the Pie chart. Do I need to start with a different kind of chart and cheat my way there?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 24, 2022, 3:53pm UTC](https://forum.inductiveautomation.com/t/remove-shadow-from-report-pie-chart/59961/4 "2022-05-24T15:53:46Z")

</div>

Oof. I didn’t realize we didn’t expose `configureChart` on the pie chart…

Unfortunately, I don’t think you even can start from another chart and ‘cheat’ your way there. I tried (it would look something like the below), but you can’t set `plot` on a `chart` instance.

```python
def configureChart(data, chart):
	#Example: chart.setTitle(data['myKey'])
	from org.jfree.chart.plot import PiePlot
	from org.jfree.data.category import CategoryToPieDataset
	from org.jfree.util import TableOrder
	ds = CategoryToPieDataset(chart.categoryPlot.dataset, TableOrder.BY_COLUMN, 0)
	chart.plot = PiePlot(ds)

```

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [May 24, 2022, 4:06pm UTC](https://forum.inductiveautomation.com/t/remove-shadow-from-report-pie-chart/59961/5 "2022-05-24T16:06:49Z")

</div>

I wanted to do my due diligence, but I guess I’ll live with the shadow. Thanks for taking a look at this.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 24, 2022, 4:12pm UTC](https://forum.inductiveautomation.com/t/remove-shadow-from-report-pie-chart/59961/6 "2022-05-24T16:12:16Z")

</div>

While it won’t help in the short term, I did make a ticket to add `configureChart` to the pie chart, since I can’t see any reason for its absence other than a mistake on our part.

---

<div class="post-metadata">

**Author:** ![schenk](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@schenk](https://forum.inductiveautomation.com/u/schenk)\
**Post date:** [May 24, 2022, 4:45pm UTC](https://forum.inductiveautomation.com/t/remove-shadow-from-report-pie-chart/59961/7 "2022-05-24T16:45:19Z")

</div>

Am I missing something? EDIT: Yup, I’m missing something… Reporting…  
According to this it was added in 8.0.16 [Nightly 8.0 Changelogs - 2020 - #121 by sreis](https://forum.inductiveautomation.com/t/nightly-8-0-changelogs-2020/31153/121)

**8766: Add configureChart to all JFreechart extension Vision components**  
Added a configureChart extension function to the following components:  
Bar Chart, Gantt Chart, Status Chart, Pie Chart, Meter, Thermometer, Compass

On 8.1.12

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/4/b4cde39bcf8be32343e085ffbfb71eefdc35bb4f.png)

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [May 24, 2022, 4:47pm UTC](https://forum.inductiveautomation.com/t/remove-shadow-from-report-pie-chart/59961/8 "2022-05-24T16:47:01Z")

</div>

I’m trying to alter the appearance of a pie chart in a report. This is a pie chart in Vision.
