i need some help
it's possible to change the dataset default color ?
if someboby know tell me please
Bye
dataset color
I made a color change of series of CategoryItemRenderer in following code.
I am sorry if it is not the thing which you want to do.
Code: Select all
CategoryItemRenderer renderer = plot.getRenderer();
Paint[] paint;?[b]// Arrangement by which the color to set up personally was defined[/b]
for(int ii=0; ii<paint.length; ii++){
??renderer.setSeriesPaint(ii, paint[ii]);
}
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
The colors are controlled in the renderer. The HorizontalBarChartDemo2 class (included in the JFreeChart distribution) contains code that customises the colors...
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Hi,
The setSeriesPaint() method sets the color of a series but how can we set the color of individual datavalues in that series, which is usually done based on a condition.
Say in a series with datavalues [2, 4, 2], the first and last values(2) are passed but the second value(4) fails and we need to show this datavalue in a different color than that of passed datavalues.
Thanks,
Jitendra Rana
The setSeriesPaint() method sets the color of a series but how can we set the color of individual datavalues in that series, which is usually done based on a condition.
Say in a series with datavalues [2, 4, 2], the first and last values(2) are passed but the second value(4) fails and we need to show this datavalue in a different color than that of passed datavalues.
Thanks,
Jitendra Rana