Reporting Chart Scripting Documentation?

I'm trying to figure out what I can do with report chart scripting:
image

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

Here's what I have in the scripting field:

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.

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 linked from this page: Report Charts | Ignition User Manual

2 Likes