Color « Series « JFreeChart Q&A





1. Disable changing Colors when removing a series    jfree.org

Hello together, i have a tiny problem, hope anybody can solve it. I use a MultipleAxisXYLineChart where different curves are painted on one of four Y-Axises. When I remove for the first series of one axis (painted red) the second curve of this axis becomes red, the third one blue etc. Im searching for a way to disable that effect, so ...

2. Setting colors in timeseries - urgent help needed    jfree.org

by mhilpert Tue Jul 19, 2005 1:09 pm Code: Select all /** * Set color of series. * * @param chart JFreeChart. * @param seriesIndex Index of series to set color of (0 = first series) ...

3. How to change color of each series in single stackedBatChart    jfree.org

Hi, I have single category multiple series stacked bar chart, when I plotted the chart, then it by default assigned color to each series, but I want my to assign my colors to those series, How can I do that? Code: Select all DefaultCategoryDataset dataset = new DefaultCategoryDataset(); ...

4. change color of timeseries    jfree.org

Hello, I've developed an timeseries chart application. It works really great. There is only one thing i would like to change. That is the lines of a TimeSeries. The color is picked automatically. I would like to set it. I also would like to set the line thickness. Is this possible? And how is it possible? Thnx 4 your help, oboly ...

6. Different colour and width in one series    jfree.org

Hi All. I have time series chart, as usual, based on TimeSeriesCollection dataset TimeSeries series1 = new TimeSeries("Series 1", Month.class); series1.add(new Month(1, 2002), 500); series1.add(new Month(2, 2002), 300); series1.add(new Month(2, 2002), 600); TimeSeriesCollection dataset = new TimeSeriesCollection(); dataset.addSeries(series1); How can I have it plotted in different colours and line width from point to point within one series? Thanks a lot in ...

7. Series color    jfree.org

Paint p = renderer.getSeriesPaint(seriesIndex); if (p instanceof Color) { Color c = (Color) p; ... do something with c } else { // p is not a Color object, maybe it is a GradientPaint or a TexturePaint or something else? }

8. PROBLEM: change color with setSeriesPaint    jfree.org

PROBLEM: change color with setSeriesPaint by amk Wed Nov 15, 2006 5:50 pm hi, i'm trying to change the colors of my line graph from default to different colors with the method setSeriesPaint(). this works fine for the first series of date.. can be seen here Code: Select all private static JFreeChart createSteppedAreaXYChart(String title, ...

9. set color for series    jfree.org

set color for series by srssenthilkumar Tue Dec 19, 2006 1:34 pm Hi All, how to set the custom color for Line in time series chart. code: public String generateBarChart(HttpSession session,HttpServletRequest request, PrintWriter pw) { String filename = null; try { //super(title); final TimeSeries series = new TimeSeries("FreeScale", Quarter.class); final TimeSeries s2 = new TimeSeries("NCSG", Quarter.class); series.add(new Quarter(1, 2001), 500.2); ...





10. Notes on setSeriesPaint, getSeriesCount: setting trace color    jfree.org

Notes on setSeriesPaint, getSeriesCount: setting trace color by Mike Watts Tue Jan 30, 2007 3:31 pm I am not a newbie to JFreeChart, but I'm no expert either. I spent more than half a day messing around with a multiple-axis time series graph... the main part was quick and easy, it was setting the colours that took all the time. ...

11. Color under the time series chart    jfree.org

12. XYDifferenceRenderer and Series outline color    jfree.org

XYDifferenceRenderer and Series outline color A free public discussion forum for the JFreeChart class library. Post a reply 8 posts Page 1 of 1 XYDifferenceRenderer and Series outline color by develop Tue May 08, 2007 8:08 pm is it possible to hide the Series outline in XYDifferenceRenderer ? or make that as same color as positive Color and negative ...

13. time series chart color    jfree.org

14. how to change color of a series and a series stroke ?    jfree.org

how to change color of a series and a series stroke ? by kyoanGenesis Mon Nov 19, 2007 6:01 pm Hi all, I tried to select a series by clicking on chart, I was found how to select index of the series near of the mouse. But I was a little problem to change the Paint of series that are ...

15. Change color in a timeseries    jfree.org

16. Fixing a Series to always have the same colour    jfree.org

Fixing a Series to always have the same colour by james.appleby Thu Sep 11, 2008 6:03 pm I apologise if this is an obvious question to some, but I've been struggling with this for some time now. I use JFreeChart to render data based on a set of selections. The user selects what data they want to view, presses a ...





17. determining series color    jfree.org

determining series color by bigdweeb Wed Nov 05, 2008 4:27 pm I have been messing around with JFreeChart for a while now to learn how it works for a side project I'm working on. I have figured out how to do most everything through trial and error and searching here. I do have a question about a graph I am ...

19. XYSplineRenderer series color and stroke    jfree.org

// I have an XYLineAndShapeRenderer as well for another dataset, // created for me by the ChartFactory.createTimeSeriesChart method // and the following calls work just fine. xyPlot.getRenderer(0).setSeriesStroke(0, new BasicStroke(2.0f)); xyPlot.getRenderer(0).setSeriesPaint(0, Color.BLUE); // This code, however, is basically ignored. My spline series is rendered // at 1 pixel wide, in red. XYSplineRenderer renderer2 = new XYSplineRenderer(34); renderer2.setSeriesPaint(0, Color.GREEN); renderer2.setSeriesStroke(0, new BasicStroke(3.0f)); xyPlot.setRenderer(1, ...

20. assign color to series by its name not positionally    jfree.org

Greretings!! well i got a problem! i need to associate to a series a color, but i need to identify the series by its name and associate a color. I saw the metod from the AbstractRenderer. setSeriesPaint, but it want the color and the int position of the series, how can i retrive the series position by its name and set ...

21. Get Series Color    jfree.org

Hello, I've read the FAQs and searched the forum to try to retrieve the colors of each of the lines of an XYSeries plot that I have. I tried all the paint-related methods of the renderer (renderer.getSeriesPaint, .getSeriesItemLabelPaint, etc... and cast them into color) but I get only either black color or null. Please help, LD

22. Disable certain series Color usage in Chart    jfree.org

You can call setDrawingSupplier(DrawingSupplier supplier) on the Plot class. Unless specifid otherwise, a Plot will use a DefaultDrawingSupplier which in turn will contain (and return upon request) the paints defined in its DEFAULT_PAINT_SEQUENCE which uses ChartColor.createDefaultPaintArray() which in turn contains the yellow color. When you construct a DefaultDrawingSupplier, you can define your own paintSequence (without yellow and other light colors), or ...