Set Background Color Jfreechart at Color

Set Background Color Jfreechart. Rangeaxis.setlabelfont(new font(arial, font.plain, 12 )); You need to obtain a reference to the renderer (the object responsible for drawing the bars in the chart) and set the series colors there:

java JFreechart Polar plot with a colormap Stack Overflow
java JFreechart Polar plot with a colormap Stack Overflow from stackoverflow.com

Chartpanel inherit method javax.swing.jcomponent.setbackground(java.awt.color) chartpanel.setbackground( color.red ); Hi, i am using jfreechart library and i have been able to draw graphics (no problem untill now). Org.jfree.chart.renderer.abstractrenderer obtains it through the jfreechart object, and then uses it to adjust the internal part of the drawing (e.g.

java JFreechart Polar plot with a colormap Stack Overflow

As shown on the codes, there is no problem in series[2] data/color changing but when i want to change the color for series[1], it would not allow me to. Numberaxis rangeaxis = new numberaxis(kpi values); But if i want to set it as a combination of 2 colors color start = new color(100,207, 100); Post edited by mjvinoth at 07/28/2009 05:07