series « BarChart « JFreeChart Q&A





1. jFreeChart: Change Bar color regardless of series    stackoverflow.com

I need to change the color of Bars regardless of their series. so setSeriesPaint() is not useful in this case. Is there another way?

2. [Bar] Domain axis label for each bar in a series ?    jfree.org

Hi, For the following category dataset: categorydataSet.add(value1,"series 1","category 1"); categorydataSet.add(value2,"series 2","category 1"); categorydataSet.add(value3,"series 3","category 1"); You'd get 3 bars, with different colors by default, and the label on the category axis would be 'category 1". The series would explained thru' legend items, with the corresponding colors matching. However, I'd want to disable the legends and instead have the "series X" text ...

5. Sorting Bars in Series    jfree.org

6. Reducing Width of bar and series key in the side    jfree.org

Hi, I have 2 questions. 1. How do I reduce the width of the bar. I want them to be thinner. Using renderer.setMaximumBarWidth(); doesnt seem to make a difference. 2. Right now my series (key for the graph) is displayed very nicely inside a box at the bottom of the chart. Is there any way by which we can make the ...

9. JDBCCategoryDataset and more series within the same BarChart    jfree.org

Hello, everybody I try to create a BarChart using a JDBCCategoryDataset and enrich it with the results of another JDBCCategoryDataset, as follows, but without any success: ------------------------------------------------------------- String sql1="select label, value from table where condition1"; String sql2="select value from table where condition2"; con = DriverManager.getConnection(url, "schema", "password"); JDBCCategoryDataset data1 = new JDBCCategoryDataset(con); JDBCCategoryDataset data2 = new JDBCCategoryDataset(con); data1.executeQuery(sql1); data2.executeQuery(sql2); // this ...





10. Possible to display 50 series in a bar chart?    jfree.org

Hai, I am a newbie here and I want to display a chart that consists of a numbers of bar. Let say I am doing a chart that shows the NUMBER OF STUDENT of each SUBJECT. with bar chart. Let's say there are 50 subjects, is it possible to show all in the chart? Or is there any suggestion?

11. Unable to view the previous series in a layered bar chart    jfree.org

Unable to view the previous series in a layered bar chart by krunalee Mon Jul 30, 2007 1:38 pm Hi, I am trying to draw a layered bar chart. If the data for my first series is less than that of second series, then the second series bar hides it. I have to keep both the series bars of the ...

12. BarChart series with two different colors    jfree.org

Hi, I need to draw a barchart series with 2 different colors - the color change happens across a threshold value of the X-axis/buckets. On the BarRenderer, I can only find a way to set 1 color per series: renderer.setSeriesPaint(0, CHART_COLORS[0]); Is there a way one can do this? Is it even possible? FWIW, I have only one series in this ...

13. Change Series order in a Barchart    jfree.org

14. jfree chart with constant series Bar length    jfree.org

hi when i make a chart with jfreeChart with a lot of Data , the number of series become also a lot ,and I have to change the size of chart (width and length) manually. is there any way I hold the size of bars(series) invariable, and the size of chart become big automatically ?

16. Cutsom bar width for each Task in a series    jfree.org

I've created an XYBarChart which plots a series of Tasks as a horizontal stacked bar chart. I've managed to customize the color of each Task by overriding the getItemPaint method of the XYBarRenderer. But what I also need to do is to customize the width of each Task in the series. Is there a way of doing this? Thanks in advance! ...





17. Displaying Series Value ontop of Layered Bars    jfree.org

LayeredBarRenderer layeredRenderer = new LayeredBarRenderer(); layeredRenderer.setSeriesBarWidth(0, .6); layeredRenderer.setSeriesBarWidth(1, .35); layeredRenderer.setSeriesBarWidth(2, .15); layeredRenderer.setSeriesItemLabelGenerator(0, new StandardCategoryItemLabelGenerator("{2}",NumberFormat.getIntegerInstance())); layeredRenderer.setSeriesItemLabelGenerator(1, new StandardCategoryItemLabelGenerator("{2}",NumberFormat.getIntegerInstance())); ...

18. Bar chart with axis per series    jfree.org

Hi there, Using JFreeChart version 1.0.13. I am trying to create a BarChart with two series of data. However I want the first data series to be scaled to a range axis on the left, and the second data series to a range axis on the right. Series 1 is Usage, Series 2 is Cost. I managed to get it working ...

19. BarChart - bar color depend on value (same series)    jfree.org

BarChart - bar color depend on value (same series) by cutin Tue Mar 09, 2010 2:17 pm HI I would like to make in barChart something like that : if value are under 500 bar will be green, over 500 the bar will be blue, if over 1000 - red. How to make this ? If it's possible of course... ...

20. XYBar - how can I Separate the two kind of series bar ?    jfree.org

I use the DateAxis to create the bar graph. the two kind of series overlap each other when the the same DateAxis value . how can I Separate the two kind of series bar when thear DateAxis value is the same. a part of source as follows who can help me ? thanks. for (int i=0;i