BarChart 1 « BarChart « JFreeChart Q&A





1. jFreeChart: Setting different positive and negative standard deviations on a bar chart    stackoverflow.com

I need to create a StatisticalBarChart that not just has one value for standard deviation but a positive and negative standard deviation. So that the deviation is not symmetrical around the mean ...

2. How to generate a bar chart in JFreeChart with default components' size?    stackoverflow.com

I am trying to generate one bar chart but it's forcing me to control width and height by calculating size of labels from domain axis and causing problems when they are ...

3. Change SeriesPaint for BarChart    stackoverflow.com

I need to change the color of the bars in this BarChart, but it doesn´t work. What am i doing wrong ? Edit: Infact, it changes only the color of the first ...

4. Bar chart - Stretch Dynamically    jfree.org

I've been working with jasper reports using ireport tool. Problem is even using bar chart orientation as horizontal, chart is fixed and each bar looks like thin line. I have tried using chart customizer class for stretching with no success. Is there anyway to set each bar width and stretch bar graph?

5. LegendItemEntity not returned for BarChart    jfree.org

I am displaying a CategoryDataset in a BarChart using a CategoryPlot and am not getting LegendItemEntities returned from the following calls: EntityCollection entities = renderingInfo.getEntityCollection(); entities.getEntity(x,y); The getEntities() call is returning CategoryItemEntities just fine, but not LegendItemEntities. When I click on a legend item it just returns null. Any ideas on what I'm doing wrong? This is using 1.0 RC1 -Aaron ...

6. BarChart "falling from sky"    jfree.org

Hi, at first, congratz to all developers of JFreeChart. Nice job! I would like to know if it is (or will be) possible to have barcharts (timeseries) falling from the top of the chart (whereas positive values). Here people used to represent rain millimeters per hour with bars falling (like rain ) from the top of the chart, while representing on ...

7. Customizing bar chart    jfree.org

Hello in my project i am using stackedVerticalbar to display positive and negative values I want following things in the chart:- 1) the item label is hided if i decrease the chart size . 2) the catergoryaxis label position needs to be changed i want it on axis 3) is there any way to have 2 itemlabel for each bar in ...

8. Can JFreeChart's BarChart handle this situation?    jfree.org

I'm trying to create a vertical bar chart that will display data from a group of golfers. The X axis is number of rounds, the Y axis is the average score. Depending on the number of golfers in the group, I can have from 1 to 20 series associated with this bar chart, and up to 20 different categories. Each category ...

9. Help with barchart using cewolf    jfree.org





11. Just started, need info on bar chart    jfree.org

Hi, I need to produce a bar chart for a STV(single transferable vote) program. What I want to do is display the vote transfer pattern on a bar chart. Every bar represents a candidate's total vote. It consists of his/her base vote(first choice), then on top of that vote given to the candidate from another candidate. So if candidate 2's first ...

13. special bar chart ?    jfree.org

14. Problem in dividing single Bar chart?    jfree.org

Hi all, I want to create an image with the help of JFreecharts which consist of a single bar, but I want to divide that bar into multiple values i.e. it can show me multiple categories on a single bar with each category is having different color. Is there any API for this?





17. Combined bar/stacked bar chart    jfree.org

I'm trying to find a way to create a chart that has two bars per category. One of the two bars need to be a stacked bar while the other is just a single bar with values on the same axis. DefaultCategoryDataset doesn't seem to support this when using the same category and different series - that just creates more stacks ...

18. Barchart out of scale    jfree.org

Barchart out of scale by Hrk Tue Sep 20, 2005 11:57 am Anyone knows how to correct this ? The second bar is displayed only half, see picture below. JFreeChart 0.9.21 Image is generated by a servlet: Code: Select all TimeSeries series = new TimeSeries("Kosten", Month.class); series.add(new Month(8,2005),800); series.add(new Month(9,2005),1775); JFreeChart chart = ChartFactory.createXYBarChart( ...

19. Bar Chart    jfree.org

20. Help Displaying Texts In a Bar Chart in a Inclined Manner    jfree.org

Like the label of Y-AXIS ON A BAR CHART which comes written vertically. i WOULD LIKE TO display the category items in a inclined manner If someone can help me how to do this Ps: i require this because the category texts are large & when displaying hem horizontally the text doesnt gets displayed fully Pps: i convert the barchart to ...

24. Dynamic Bar Chart    jfree.org

I think this jfreechart (at least up to pre 1 version) wouldn't be the right tool for you task. of course you could google for animations implement XMLHttprequest and stream the images to achieve your task, but the usual way would be to use an Applet. IIRC there are already monitoring applets free available, so grab one of those and follow ...

27. (Hopefully) Simple Bar Chart Question    jfree.org

I have a couple of questions related to the image below, namely: 1. how do you set the position of the categories i.e. A, B, C. 2. how can you set the width of the bars, do you need to work out the total width based on the number of bars? I appreciate that this information may be available elsewhere but ...

28. help needed regarding barchart    jfree.org

29. 2 barchart questions    jfree.org

Hallo! * I'm only expecting positive values. But when all values are 0 the 0 base is not at the bottom (as I expected) but in the middle of the chartpanel * I'm only expecting integers (not doubles and stuff like that). How can I tell the units on the left side of the chart to represent only full numbers e.g. ...

30. Is this type of bar chart possible ??    jfree.org

I am trying to combined the StatisticalBarChartDemo1 with LayeredBar chartdemo. i have 5 years of data that i need to display, but year 1,2 and 3 i need to display just normal LayeredBar chart, but then for year 4 and 5 i need to show layered bars along with that small error on top. so i need to use StatisticalbarRenderer. I ...

31. Is this type of bar chart possible ??    jfree.org

You need a layer for every type bar you need. You can't have different type of bars per renderer. You need to generate the base bars (the largest) with the factory, then you extract the xyPlot object and you create a new entry with a different dataset, but with the same scale. TimeSeriesCollection dataset = new TimeSeriesCollection(); dataset.addSeries(this.total); dataset.addSeries(this.free); DateAxis domain ...

32. Bar Chart Animation    jfree.org

33. need help bar chart    jfree.org

35. Need Help with the Bar Chart    jfree.org

36. Stcked Bar Chart    jfree.org

Hi! I have created a StackedBarChart with 4 Items(e.g. 1st - 4th year); I want to have the background of only one bar (Not a series mind u, a bar itself) to be different than that of the other bars.. Is it possible?? If yes plz show me the way... Its very urgent... Thanks in advance...Partha

38. Grouped barchart    jfree.org

39. How to customize BarChart ?    jfree.org

I use eclipse 3.1 and 3.2 at the moment - you will need to attach the source code to the jar file for code completion. This works in eclipse 3.1.0 so YMMV Right click on the project and select Build Path -> Configure Build Path... Select the Libraries tab Open up the tree on the jfreechart.jar entry (i.e. click the '+') ...

41. Problem with a bar chart    jfree.org

The ones that are not drawing are the labels that are too wide to fit within the bar. In this case, the label position reverts to the return value from getPositiveItemLabelPositionFallback(). If this is null, the label is not drawn at all. You probably want to call setPositiveItemLabelPositionFallback() and specify the center position to force these labels to be displayed where ...

42. Grouped bar chart    jfree.org

It seems that I don't need a grouped bar renderer afterall. Adding a SubCategory axis to the plot does exactly what I need to do. I also need to set a fixed legend, like in the grouped stack demo4, to avoid the large legend that would otherwise be added. Maybe that explains why there is no renderer implementation available? I am ...

43. Bar chart with sub-categories    jfree.org

44. Barchart    jfree.org

45. bar chart demo 5    jfree.org

46. questions about BarChart    jfree.org

47. problems for bar chart    jfree.org

www.jfree.org View topic - problems for bar chart www.jfree.org Free Java software for data analysis and presentation Skip to content Advanced search Board index JFreeChart JFreeChart - General Change font size FAQ Register Login problems for bar chart A free public discussion forum for the JFreeChart class library. Post a reply 13 posts Page 1 of 1 ...

48. Refresh Bar Chart    jfree.org

public void actionPerformed(ActionEvent event) { if ("comboBoxChanged".equals(event.getActionCommand())) { selDivCd = divs[getDivisions().getSelectedIndex()].getCode(); selDivDesc = divs[getDivisions().getSelectedIndex()].getDesc(); getData(); ...

50. Basic Bar Chart    jfree.org

Hi. I'm new to JFreeChart, so I apologize for what is probably a very simple question... I'm trying to create a basic bar chart - with labels along the x-axis (i.e. people's names), and values (frequencies of some event) for each of those people on the y-axis. From looking at the demos, I thought I should be using the ChartFactory's createXYBarChart ...

51. Is there a way I can add trendline's to a barchart....    jfree.org

Is there a way I can add trendline's to a barchart.... by Davey Fri Feb 23, 2007 9:47 am I have just started using Jfree Chart a week ago. And have built a Barchart graph to count the number of Users I have within a database, any way the question is how easy is it to add trendlines to this ...

52. Hiding a particular stack in the stack bar chart (Plz help)    jfree.org

Hi Everyone, I have a situation that I want to Hide a particular stack or slab in the stacked bar chart. I'm using Stacked bar Chart. For example: I have dataset values as 1000, 2000,3000, 4000, 5000 so the stacked barchart will drawn with 5 stackes. if I want to hide stack of 3000 so that two stack of 1000 and ...

53. SQL and JFreechart barchart    jfree.org

SQL and JFreechart barchart by Derek Foster Tue Feb 27, 2007 1:58 pm Hello there, First of all I'd like to thank everyone one here for the sheer amount of information in this forum regarding help for JFreeChart. Its one of the best support forums Ive seen for a project. I have hunted through the forum and so far havent ...

54. Dynamic bar chart    jfree.org

Hi, I would like to use a dynamic bar chart in a jsf page. The chart should present the CPU loads of the system, and update every second. (I would like it to be similar to the CPU usage chart in the windows task manager). What is the best way to implement it? Thanks a lot, Efrat

55. TimeLine in the BAR Chart    jfree.org

57. Create barchart from a TimePeriodValuesCollection    jfree.org

Hi, right now I have created an XYBarChart using a TimePeriodValuesCollection. My data is spaced out quite a bit since the time between data is large. Sometimes this results in a chart that has very small, almost indistinguishable, bars. My thought is to do away with the time aspect of the data. What I want is a bar chart, or histogram, ...

58. Barchart like this    jfree.org

59. Positions of TickLabels :combinationTimeSeries and Barchart    jfree.org

Hi, I've created one timeseries chart. which is a dual axis chart. For this I 've added Barrenderer at 1st location of plot. Due to this, tick labeles are getting displayed for line chart values. Looking at bar chart. it seems that labels are shifted from right to left. anybody having idea??? How to shift tick labels towards right side?? p.s. ...

60. Sub-categories in Bar Chart    jfree.org

61. Setting Base for bar chart in version 0.9.16    jfree.org

Thank you for the support. the problem is solved. It was easier than I thought. Just extends BarRenderer add function calculateBarL0L1 to overwrite setting base. protected double[] calculateBarL0L1(double value) { double lclip = getLowerClip(); double uclip = getUpperClip(); double bb = this.base; if (uclip <= 0.0) { // cases 1, 2, 3 and 4 if (value >= uclip) { return null; ...

62. Drill in Barchart is showing junck character.    jfree.org

Sir, I am using JFree chart for development. and here i am able to do so many coding in jfree charts. but one problem I am finding that when i am drilling down to next level(means in barchart when we enable url to go for next level.) I am getting junck character. This is working fine in pie chart. I tried ...

63. Bar Chart question    jfree.org

64. Trying to find out the dateset for the bar chart    jfree.org

I am interested to know how to find the dataset for specific bar once I click the mouse on the bar or move the mouse over it. I believe the solution would good enough for bar chart and stacked bar chart. I know I can define a mouse handler that get the event and register it with the chart itself by ...

65. Bar Chart    jfree.org

Hi , I am producing a simple BarChart consisting of a single series unit, which I afterwards add it to a PDF document via iText. For some reason, the first bar is always transparent, no matter if I set a renderer on the plot or not. Is there any option to control the bar fill transparency? Regards, Alex

66. have problem with my barchart    jfree.org

public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //System.out.print("test0"); response.setContentType("text/html"); OutputStream out = response.getOutputStream(); try {//System.out.print("test1"); DefaultCategoryDataset dataset= new DefaultCategoryDataset(); dataset.addValue(10.0, "S1", "C1"); dataset.addValue(2.5,"S1","C2"); dataset.addValue(4.5,"S1","C3"); dataset.addValue(5.0,"S1","C4"); dataset.addValue(-5.0, "S2", "C1"); dataset.addValue(-7.0, "S2", "C2"); dataset.addValue(14.0, "S2", "C3"); dataset.addValue(-3.0, "S2", "C4"); JFreeChart jfc=ChartFactory.createBarChart( "BarChart", "Category", "Value", dataset, PlotOrientation.VERTICAL, true,true,false ); BarRenderer br = new BarRenderer(); br.setItemMargin(0.0); response.setContentType("image/png"); ChartUtilities.writeChartAsPNG(out,jfc,500,400); } i have already ...

67. How to define second domain-axis in overlaid barchart?    jfree.org

Hi all, I have an overlaid barchart. So my plot has a second category-dataset. On my chart I want to use two domain axis. One on top, which should show the categories from dataset1 and one on the bottom (categories of dataset2) of my chart. Unfortunately both axis are the categories from my first dataset. Can anyone help? Thanks.

68. barChart with chartCreator    jfree.org

69. (How) can i add patterns to my BarChart?    jfree.org

Hello! I'm currently evaluating some chart - libs and really like jfreechart (for what i've seen till now)... But i have one question: Is it possible (if yes, how?) to add patterns to the bars? Like shown in the link below? http:// img135.imageshack.us/ my.php?image=diagsm2.jpg (sry, but one picture says more than a thousand words) Thanks for your help, Greetings semteX edit: ...

70. Bar Chart exception    jfree.org

71. Adding a ScrollBar on a bar Chart    jfree.org

Adding a ScrollBar on a bar Chart by jhh Wed Nov 28, 2007 11:38 am Hi!!!! I have created a bar chart that shows the number of hours per day that have worked a employee within a range of days specified. The problem is that when the number of days is very big, the dates on the x axis doesn't ...

72. Barchart Editing    jfree.org

73. Problem to display the Bar Chart    jfree.org

Problem to display the Bar Chart by Rajnesh Sat Jan 05, 2008 9:08 am Hi all PLZ HELP ME I want to create a bar chart using CreateXYBarChart() having XYPLot() but this show a line chart .I m very confused Here is my code package chart; import java.awt.Color; import java.text.NumberFormat; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.axis.ValueAxis; ...

74. Bar Chart Problem    jfree.org

Bar Chart Problem by Rajnesh Sat Jan 05, 2008 9:15 am Hi all I want to create a bar chart using XYPLot but wht happen the different bars overlapped each other .Iwant to display every bar separately as in the Category plot .Is any soln for this problem here is the code package chart; import java.awt.Color; import java.text.NumberFormat; import org.jfree.chart.ChartFactory; ...

75. barchart with TickBand    jfree.org

76. stack bar chart using jfree 1.0.6    jfree.org

77. TimeSeriesCollection bar chart    jfree.org

78. Stack bar chart    jfree.org

vivekkumar08 wrote:I am able to create stacked bar chart but the problem is that the bar getting split into 2 pieces, so how i can able to show it in one single bar! Can any one help me. Please either provide an image, some sample code, a more detailed description of your problem, or a combination thereof. It is hard to ...

80. Trapezoid shaped bar chart    jfree.org

Hello, I am working on plotting something that looks like bar chart but each bar can have different start and end Y values. So the char would look like: Y ^ | + | +++ | ++++ | +++++ | +++++ | +++++ ----------->X where each bar can have different width in X and the starting and ending Y values are ...

81. How to display the y-axis sclae in barchart......    jfree.org

Hi This is venkat, new to JFreeChart. I am displaying the barchart using the JFreeChart. The dataset, i have taken as DefaultCategoryDataset dataset = new DefaultCategoryDataset(); dataset.setValue(200, "Marks", "Rahul"); dataset.setValue(700, "Marks", "Vinod"); dataset.setValue(400, "Marks", "Deepak"); dataset.setValue(900, "Marks", "Prashant"); dataset.setValue(600, "Marks", "Chandan"); I got the output, but at the time of displaying the barchart, i am not able to display the range ...

83. BarChart problems    jfree.org

I have the following issue, I am trying to resolve. I am using Jasper Reports and it shipped with jfree 1.0. Within the report I am drawing up a bar chart which worked fine under jfree 1.0, but when I upgraded to 1.0.9 (because I found that 1.0 had a bug related to bubble charts). After upgrading to 1.0.9 however I ...

84. Barchart problem - JFreeChart 1.0.1    jfree.org

Sometimes when I add "too many" categories to a barchart the program throws a NullPointerException or a ConcurrentModificationException (most, but not always). "Too many" means that there are so many categories that the JFreeChart is unable to display them on the chart and it shows ... (dots) instead of the names of the categories. I use JRE 1.5 and Windows XP ...

86. bar chart    jfree.org

88. I have problem how can draw the barchart in pow    jfree.org

I am using this examples.This examles are draw the barchart in awt. what I am trying to do, I want to draw the barchart in powerpoint presentation. where I modify the code to change the awt to powerpoint presentation. I am confusing and I have the all values getting from the calculation based on the report. can anyone help me. please ...

89. How to implement the animation effect of BarChart?    jfree.org

I have a value List. Now I'd like to draw the Bar Chart using JFreeChart. I hope to display one value at each time on the Bar Chart, and after for example 30ms, display the next value, continue... until the last value of the List. I hope to have an animation effect of different length of the Bar at each time. ...

90. help and problem with JDBCCategoryDataset to build BarChart    jfree.org

help and problem with JDBCCategoryDataset to build BarChart by exodia Tue Aug 19, 2008 3:54 pm Hello everyone I'm trying create a graph bar Apart from a connection to a base occupy a servlet but I do not return the Dataset JFreeChart chart ChartFactory.createBarChart = ( "Graphic Demo Bars", "EJeX" "EjeY" Dataset, PlotOrientation.VERTICAL, True, True, True / / Show Legend ...

91. Upside down BarChart    jfree.org

92. Helpme Barchart Problem    jfree.org

93. tickmark set(barchart)    jfree.org

94. How to create this special kind of bar chart?    jfree.org

I need to create a kind of bar chart with the following properties: - data is a status value (say 0.0, 0.5 or 1.0) for a series of points in time at regular intervals. The value has a meaning (0.0 = down, 1.0 = up, 0.5 = unknown). - representation should be vertical bars that are all equally high (with nothing ...

95. Draw barchart using arrays    jfree.org

... I have 2 arrays namly array1[]={1,2,3,............................6000} array2[]={0.2,0.3,1.2,0.1,.........................2.1} i.e., 1---0.2 2---0.3 .... ... .... 6000---2.1 both arrays contain not less than 6000 elements...number is not important... now I want to draw a bar chart showing above values on x,y coordinates respectively..I mean array1[] values on X-axis...and array2[] values on y-axis ...the Y-axis must dynamically increase it's range because sometimes value may ...

96. How to create a Barchart with different year comparison?    jfree.org

I want to create a barchart with 12 categories (=12 month of the year). Each category can have different series. The series should be added to one bar. This is standard. But now i want more than one bar in each category, each bar is the addition of the values of the series in a month. So the user gets a ...

97. Optimal size calculation for a bar chart    jfree.org

I'm saving a bar chart as PNG using the saveChart method. What happens is that if there are few bars, the width of each bar and the spacing between them is large. If there are too many the bars they look crowded. Is there a way to set/calculate the width and height optimally so that the chart does not look ugly. ...

99. Bar Chart subclassing    jfree.org

I am creating a bar chart in which I would like to highlight an out-of-specification item by turning the bar red. I followed the example in the forum to create a ThresholdBarRenderer and the color change works. (Thank you to the writers on that thread!) In the createBarChart method, the renderer is created and tooltips are set to true. When I ...

100. How to create a barchart on map?    jfree.org