# Barchart Reporting Tool Legend Border

**URL:** <https://forum.inductiveautomation.com/t/barchart-reporting-tool-legend-border/66866>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [November 23, 2022, 5:46pm UTC](https://forum.inductiveautomation.com/t/barchart-reporting-tool-legend-border/66866 "2022-11-23T17:46:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JR7](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@JR7](https://forum.inductiveautomation.com/u/JR7)\
**Post date:** [November 23, 2022, 5:46pm UTC](https://forum.inductiveautomation.com/t/barchart-reporting-tool-legend-border/66866/1 "2022-11-23T17:46:18Z")

</div>

Hi All,

Is there a way to change or removed the border of the legend (image below) of the Barchart in Reporting? The only option available is either to show it or not and legend font and color.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/0/1072b62ec880bec912317cc2e3bc4cc705f314ae.png)

Thanks

---

<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:** [November 23, 2022, 5:53pm UTC](https://forum.inductiveautomation.com/t/barchart-reporting-tool-legend-border/66866/2 "2022-11-23T17:53:36Z")

</div>

Almost certainly possible via the `configureChart` extension function.  
Possibly (untested):

```python
from org.jfree.chart.block import BlockBorder
chart.legend.itemContainer.frame = BlockBorder.NONE

```

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [November 23, 2022, 5:54pm UTC](https://forum.inductiveautomation.com/t/barchart-reporting-tool-legend-border/66866/3 "2022-11-23T17:54:11Z")

</div>

```auto
from org.jfree.chart.block import BlockBorder
from java.awt import Color

legend = chart.getLegend()

# Change color
legend.setFrame(BlockBorder(Color.red))

# Hide border
legend.setBorder(0, 0, 0, 0)
# or
legend.setFrame(BlockBorder.NONE)

```

---

<div class="post-metadata">

**Author:** ![JR7](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@JR7](https://forum.inductiveautomation.com/u/JR7)\
**Post date:** [November 23, 2022, 7:57pm UTC](https://forum.inductiveautomation.com/t/barchart-reporting-tool-legend-border/66866/4 "2022-11-23T19:57:39Z")

</div>

Hi jpark,

Thanks a lot! It works and looks better now. 👏

Thank you sir PGriffith for your input 🙂
