gradient « BarChart « JFreeChart Q&A

1. JFreeChart BarChart -> NO gradient

my bar chart is always drawn with a gradient color by default. I just want a simple color without any styled effects. Can anyone help ? Code:

   final JFreeChart chart = ...

2. How to use a gradient color in a bar chart?

GradientPaint gp0 = new GradientPaint( 50.0f, 0.0f, Color.RED, 500.0f, 0.0f, Color.GREEN,false ); ganttRenderer.setSeriesPaint(0, gp0);

3. How to remove gradient from bars?

Hi, I have searched the API and forum but cannot find the function to remove the gradient from a bar renderer. I have tried to set the paint, the fillpaint, the gradient transformer (to null), but the gradient remains. All I want is a single color bar, with see-through effect (using series paint with alpha in the color), without the reflection ...