Hello.
I'm using ireport 4.1.1. I created a variable $V{correpondance}, the value of this variable is a the string "conforme" or the string "non conforme" according to a condition.
Now the problem is that i want to create a chart with two slices that shows the total number of fields "conforme" and the fields "non conforme". I tried to create a groupe (count) and a variable $V{X} with these properties:
class: java.lang.integer, calculation:count, resettype: repot, incrementtype: group, incrementgroup: count, variable expression: $V{count_COUNT}++
and set the chart key expression to $V{correpondance} and the value expression to $V{X} but the chart is not showing the right values.
could anyone help me to solve this problem?