# Easy Chart - Legend Text and Background Color control

**URL:** <https://forum.inductiveautomation.com/t/easy-chart-legend-text-and-background-color-control/12128>\
**Category:** Ignition\
**Created:** [September 15, 2016, 7:51pm UTC](https://forum.inductiveautomation.com/t/easy-chart-legend-text-and-background-color-control/12128 "2016-09-15T19:51:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ross.Kelleway](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@Ross.Kelleway](https://forum.inductiveautomation.com/u/Ross.Kelleway)\
**Post date:** [September 15, 2016, 7:51pm UTC](https://forum.inductiveautomation.com/t/easy-chart-legend-text-and-background-color-control/12128/1 "2016-09-15T19:51:58Z")

</div>

I am configuring the Easy trend in 7.8 and I can not find how to set the Legend text and background colors. Is this possible in this version?

Thanks,  
Ross

---

<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:** [September 30, 2016, 11:46pm UTC](https://forum.inductiveautomation.com/t/easy-chart-legend-text-and-background-color-control/12128/2 "2016-09-30T23:46:23Z")

</div>

You can access these properties through the chart’s configureChart extension function. Ignition’s charts are implentations of the JFreeChart library, so there are many resources online for configuration.

With the configureChart function you could do something like this:

`chart.legend.setItemPaint()
chart.legend.setItemFont()`

You will need to supply java.awt Font and Paint objects to use these functions.

---

<div class="post-metadata">

**Author:** ![christopher.panici](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/christopher.panici/32/5814_2.png) [@christopher.panici](https://forum.inductiveautomation.com/u/christopher.panici)\
**Post date:** [August 16, 2018, 5:55pm UTC](https://forum.inductiveautomation.com/t/easy-chart-legend-text-and-background-color-control/12128/3 "2018-08-16T17:55:28Z")

</div>

```auto
import java.awt

# this will set the background of the legend black
chart.legend.setBackgroundPaint(java.awt.Color.black)

# this will set the font color of the legend to white
chart.legend.setItemPaint(java.awt.Color.white)

```
