# Reporting Chart Scripting Documentation?

**URL:** <https://forum.inductiveautomation.com/t/reporting-chart-scripting-documentation/92228>\
**Category:** Ignition\
**Tags:** vision, scripting, reporting\
**Created:** [June 21, 2024, 5:59pm UTC](https://forum.inductiveautomation.com/t/reporting-chart-scripting-documentation/92228 "2024-06-21T17:59:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Foley](https://avatars.discourse-cdn.com/v4/letter/r/58f4c7/32.png) [@Richard\_Foley](https://forum.inductiveautomation.com/u/Richard_Foley)\
**Post date:** [June 21, 2024, 5:59pm UTC](https://forum.inductiveautomation.com/t/reporting-chart-scripting-documentation/92228/1 "2024-06-21T17:59:50Z")

</div>

I'm trying to figure out what I can do with report chart scripting:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/c/7ce5bf19bd726065e708087f79bc0c63150439d7.png)

I'd like to add value numbers to the bars, rotate my X-axis labels (they're too long to display), and get a better understanding of what can be scripted.

The manual has no mention of this under the report design components, the closest I could find was in the Vision components, which just refers you to the jfree chart documentation (which is not very helpful).

Example chart:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/a/8ad2f27c545cead08924f360aabf82598c5574f9.png)

Here's what I have in the scripting field:

```python
def configureChart(data, chart):
	chart.setTitle('Hourly Output vs Target')
	chart.borderVisible = True
	chart.getCategoryPlot().getDomainAxis(1).setCategoryLabelPositions(CategoryLabelPositions.UP_90)
	chart.getDomainAxis(1).setVisible(false)

```

The first two lines work, but the second two do not but do not throw any errors. I can't get any errors at all out of the scripting field (it just runs correct code and ignores the rest even if I type gibberish into the box).

Any help in understanding what I can do here would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [June 21, 2024, 7:17pm UTC](https://forum.inductiveautomation.com/t/reporting-chart-scripting-documentation/92228/2 "2024-06-21T19:17:58Z")

</div>

Where have you checked for errors? Reports run in the gateway so check there.

The scripting though is from the free chart API: [JFreeChart 1.5.0 API](https://www.jfree.org/jfreechart/api/javadoc/index.html) linked from this page: [Report Charts | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/ignition-modules/reporting/report-design/report-charts#bar-chart)
