PlotOrientation in jmix

USING JASPERSOFT in JMIX, I want to make a simple bar chart, when adding the bar chart it generates the following error:

image

ClassNotFoundException: org.jfree.chart.plot.PlotOrientation

in the jmix console it says:

Caused by: java.lang.ClassNotFoundException: org.jfree.chart.plot.PlotOrientation

image

Query for both band:
SELECT
“category 1” as cat,1 as val
UNION
SELECT
“category 2” as cat, 2 as val
UNION
SELECT
“category 3” as cat, 3 as val
UNION
SELECT
“category 4” as cat, 4 as val
UNION
SELECT
“category 5” as cat, 5 as val
UNION
SELECT
“category 6” as cat, 6 as val

having only two tables there is no problem
image

Hello,

ClassNotFoundException: org.jfree.chart.plot.PlotOrientation means exactly what it says, it can not find a class. Did you try to find to which package this class belongs, and make sure it’s included in your dependencies and imports?
Also this chart issue | Jaspersoft Community

Kind regards,
Mladen

Thank you for your reply. I’m a bit surprised i have to add these libraries to make the JMIX report to work. I added this to my build.gradle

implementation group: ‘net.sf.jasperreports’, name: ‘jasperreports’, version: ‘6.20.0’

This solved the problem
Thank you