Hi all,
I am facing this difficulty :
With iReport, I want to indicate where my user is in a range of data in a chart, as well as where the average is. That's not too difficult, that part I figured out already
However, if I have several charts in 1 report, my "user bar'" sometimes gets a different color, according whether it's below or above average. This is very confusing for my users, because they can't think, let's say, "the yellow bar is always me". The legend always has to be read, and that's not so user-friendly.
I know how to have the same series color, but within this series, I want 1 particular color to always represent the value of the average, another to represent my user, etc.
I'm working with the ChartCustomizer now :
BarRenderer renderer = (BarRenderer) chart.getCategoryPlot().getRenderer();
renderer.setSeriesPaint(0, Color.blue);
renderer.setSeriesPaint(1, Color.yellow);
renderer.setSeriesPaint(2, Color.green);
renderer.setSeriesPaint(3, Color.red);
Still, this handles the series in the order they arrive from the resultset. What I'm looking for is how I can use the series expression (as entered in 'series expression' field in the categorie series dialogue), instead of fixed indexes like 0-3.
Is this possible ?! Thanks a lot in advance.