# Legend Font Size in Reporting

**URL:** <https://forum.inductiveautomation.com/t/legend-font-size-in-reporting/101927>\
**Category:** Ignition\
**Tags:** vision, reporting\
**Created:** [February 5, 2025, 7:23pm UTC](https://forum.inductiveautomation.com/t/legend-font-size-in-reporting/101927 "2025-02-05T19:23:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmb6259](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@jmb6259](https://forum.inductiveautomation.com/u/jmb6259)\
**Post date:** [February 5, 2025, 7:23pm UTC](https://forum.inductiveautomation.com/t/legend-font-size-in-reporting/101927/1 "2025-02-05T19:23:53Z")

</div>

How can I change the font size in a chart's legend in the reporting module in Vision?

---

<div class="post-metadata">

**Author:** ![drojas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drojas/32/3403_2.png) [@drojas](https://forum.inductiveautomation.com/u/drojas)\
**Post date:** [February 5, 2025, 8:44pm UTC](https://forum.inductiveautomation.com/t/legend-font-size-in-reporting/101927/2 "2025-02-05T20:44:40Z")

</div>

At the very bottom of the chart options, there is a Scripting section. Enable it and click Edit Script.

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

Then, under the def configureChart(data, chart): you can enter something like this. Modify as needed and reference the URLs for more info.

```python
	from java.awt import Font
	legend = chart.getLegend()	# http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/JFreeChart.html
	font = Font(Font.DIALOG, Font.PLAIN, 10)	# https://docs.oracle.com/javase/7/docs/api/java/awt/Font.html
	legend.setItemFont(font)	# http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/title/LegendTitle.html
	

```
