background « Color « JFreeChart Q&A





2. set background color for a selected are in the chart    jfree.org

Is it possible to set the background color of a partial area in a chart? I have a chart. I am using the XYAnnotation to draw a threshold line (that is parallel to xaxis) based on the user input. I need to set the back ground color of the area above the annotation to a different color. I am not sure ...

5. setting background color    jfree.org

Hi, I am using jfreechart library and I have been able to draw graphics (no problem untill now). I have been able to put an image on the chart panel, although when I try to change the background color for the chart the color doesnt change. this is a piece of code I am using: ChartPanel chartPanel = new ChartPanel(chart); chartPanel.setBackground(new ...

6. title background color.    jfree.org

7. background color for regions in a chart    jfree.org

Hi all, is it possible to set the background color for some regions in a chart? i.e.: region [x=0] - [x=2] => blue background region [x=3] - [x=5] => red background An excerpt from my source code follows: DefaultCategoryDataset dataset = new DefaultCategoryDataset(); //set dataset ... //set both axis final CategoryAxis xAxis = new CategoryAxis("Time"); final LogarithmicAxis yAxis = new LogarithmicAxis("Data"); ...

8. different background colors above and below the line    jfree.org

Hi Richard, Thanks for your reply. That does the trick! The only problem now is the Positive Paint is blocking the Range Gridline Paint even though I set the gridline to black. How do I bring the gridlines to the front? Thanks! Hans plot3.setBackgroundPaint(new Color(0, 150, 0)); plot3.setRenderer(new XYDifferenceRenderer(new Color(255, 164, 0), Color.WHITE, false)); plot3.setRangeGridlinePaint(Color.BLACK); plot3.setRangeGridlinesVisible(true);





11. Foreground and Background Color    jfree.org

Hi, Hope you help me with this color issue. I am creating a simple pie chart which I want the background to be white or transparent. However when I output the image to a response stream to the browser, the entire chart seems to be overlay with a pink color as a foreground. When I try to insert the chart to ...

12. Alternate color background    jfree.org

13. Legend Background Color Setting    jfree.org

Hello everyone, I have created legend using container, because the font size in default legend was so big. I am using LegendTitle and BlockerContainer classes to get a nice legend with pretty font size and font face as well as border width. But, I could not to paint the background of legend with different color from the Chart background has. Is ...

14. 1.0.13: scatter chart null background color shows chart col    jfree.org

The chart background fills the entire background area of the chart, so a transparent plot background (the plot area is usually smaller than the chart area) will allow you to see through to the chart background. If the chart background is also transparent you will see through to the ChartPanel background (or if you render the chart to an image you ...

15. Background Colors Not Changing    jfree.org

I have reviewed the documentation and example programs many times and believe I am doing this right, but whenever I change the background paint for my chart and plot they never change. They always end up with what seems to be the default white for background color of the chart, and light grey and the background color for the plot. Why ...

16. Different background color depending data    jfree.org

final TimePeriodValues s1 = new TimePeriodValues("single serie"); for ( ... ) { /* add random data in [0 ; 5] for each hour */ Minute h0 = new Minute(0, new Hour(i, today)); Minute h1 = new Minute(0, new Hour(i+1, ...