color « LineChart « JFreeChart Q&A





2. how to color the line in a line chart    jfree.org

public void customize(JFreeChart objChart, JRChart jasperChart) { CategoryPlot objCategoryPlot = objChart.getCategoryPlot(); int colCount=objCategoryPlot.getDataset().getColumnCount() lineColor=new MyColors(); LineAndShapeRenderer renderer = (LineAndShapeRenderer) objCategoryPlot.getRenderer(); for(int i=0;i<=colCount;i++){ //Call getDifferentPaints() to get a different paint for every section }

3. change color on same serie on LineChart    jfree.org

Hi, I am trying to to change the serie color when the charts is going up (green solid) and when is going down (red and dotted) in the same serie. I am not shure but it looks like this is not possible... maybe, I could to draw a second serie with different color. If is there a way, could someone tell ...

4. How to change color of dataitem in a single series linechart    jfree.org

I have created a line chart using default category dataset and line /shape renderer.It is single series line chart.I would like to change the paint color that fills the shapes of datatItems in the linechart. I dont want to change the color of the entire line chart series but the individual dataitems based on their x and y values.Can some one ...

5. [solved] Custom color for a line chart (problem).    jfree.org

[solved] Custom color for a line chart (problem). by XW Sun Sep 09, 2007 6:16 pm Hello, Despite of my days searching on the web and trying many possibilities, I can't figure out what is wrong in my code. It is supposed to be able to draw the data set in blue (or any RGB color). The problem that it ...

6. multiple colors on one series on line chart    jfree.org

Lets say I just have a single line chart with values: {-5, -4, -3, -2, -1, 0, 1 , 2, 3, 4, 5}. I just want ONE single line to appear on my plot, but all data points corresponding to negative numbers have 1 color, the data point corresponding to 0 has another color, and all positive data points have another ...

9. LineChart, drawing a single line in diff. colours    jfree.org

Hmm .. still trying to figure out how to do this. Would like to draw a single line. The color of the line at a given point depends on a secondary information attached to the given line section. For example a given category or similar Exa. draw a path of an Airplane. If the pane is flying over water - draw ...





11. Color of lines in line chart    jfree.org

Hi, I am adding a new series in my plot, but whenever i do this it changes the color of existing series also and that to same as new one. Say i have a line chart having only one series, which is coming in red color, on i added second series(Now i have 2 line in my plot) after adding second ...

12. Change line chart color    jfree.org