StackedBarChart « BarChart « JFreeChart Q&A





1. How to set range axis values as 0 -100 for StackedbarChart using JFreeChart?    stackoverflow.com

I need to develop a Stacked bar chart usinfg JFreeChart that shows values in Percentage and Number. For percentage mode when I am setting range, the values in the range axis ...

2. StackedBarChart row key is not added to DefaultCategoryDataSet    stackoverflow.com

I have two entity Classes: A and B. A has B entities, and I have a Map defined in the following format: Map<A, List<B>. I want to add all map data to ...

3. StackedBarChart    jfree.org

Hi everyone! I need some help with the next problem, I want to chart a StackedBarChart but I want to modify the X range so X contains negatives, zero and positives, not only zero and positives. Im using : DefaultCategoryDataset dataset = new DefaultCategoryDataset(); ... dataset.setValue(...) ... dataset.setValue(...) ... JFreeChart chart = ChartFactory.createStackedBarChart(...) ChartPanel panel = new ChartPanel(chart); JInternalFrame ventana = ...

5. Newbie question to stackedbarchart    jfree.org

Hi, I have the following stackedbarchart which shows some monthly values of a company: The problem is the label of the categories. What do I have to do to change them to the real month names (Jan to Dec) instead of Monat 1-12? My Code: Code: Select all double [][] data = new double[4][12]; for (int i=0;i<12;i++){ data[0][i]=mS.getValuesFakturiert()[0][i+1]; ...

6. How to create StackedBarChart?    jfree.org

9. one question on stackedbarchart    jfree.org

First i want to say thanks to those who develop jfreechart. Great work! really. I am currently doing a trace of some vehicles' activities during one day. if i am not wrong, the best way to do it should be the stackedbarchart, with the activities as the categories. for example, if a vehicle is operating 9 to 10, resting 10 to ...





11. Help with DomainAxis en StackedBarChart    jfree.org

Hi, I am sorry for my explication, I have created a chart with hours in the domain, and now I need to insert a label in the domain to show that the hours between 0 and 8 are the night,8 and 12 are the morning, and so on..., and I want to put this labels below the hours. How I can ...

12. How I can draw vertical lines in a StackedBarChart?    jfree.org

Thanks, but I have tried to put a CategoryMarker in my code but I can`t see the vertical line, and I dont know if I have a error in my code. My code is: Code: Select all private static JFreeChart createChart3(CategoryDataset categorydataset){ JFreeChart ...

13. StackedBarChart    jfree.org

StackedBarChart by tapan Tue Jan 31, 2006 10:54 am Hi, i draw a stackedbarchart,but the problem is that i want only the image,no need of any integer in the range axis 7 in domain axis.now i have face the problem that the numbers in the rangeaxis .I have given the following code... package com.mit.visualization.ui; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; ...

14. Label in a StackedBarChart    jfree.org

15. StackedBarChart x-axis values appearing as 3 dots !    jfree.org

I am creating StackedBarChart and the x-axis labels appear as 3 dots [...] when more stack bars are being displayed in the total space of the stacked bar that is available to me. I am displaying dates in format of MM-dd-yy. Can I somehow make those visible ? What I am thinking of is to somehow make these x-axis labels appear ...

16. seeking advice for StackedBarChart labeling    jfree.org

Hello all. I'm a first time poster and Jfreechart newbie. I'm stuck on an requirement by our users to display a multi line label in a StackedBarChart that contains a small descriptive label (<5 characters), followed by its data value underneath the label. for example: |----------- | | label-1 | value-1 | |----------- | | label-2 | value-2 | |----------- I've ...





17. DomainAxis (X) in StackedBarChart    jfree.org

DefaultCategoryDataset dataset = new DefaultCategoryDataset(); dataset.addValue(10, "-53", ""+week); // week (integer) from 1 to 52 dataset.addValue(20, "53/63", ""+week); dataset.addValue(30, "63/73", ""+week); dataset.addValue(40, "+73", ""+week); JFreeChart mychart = ChartFactory.createStackedBarChart( "", "X", "Y", dataset, PlotOrientation.VERTICAL, true, true, false); final CategoryPlot categoryplot = (CategoryPlot)mychart.getPlot(); categoryplot.setBackgroundPaint(Color.white); // set the upper/lower limits of the ...

18. X-axis scale of the StackedBarChart    jfree.org

Hi, I want to know that, could i set the X-axis scale of the StackedBarChart. Here, i have 4 series with 4 different data(time based). the scale is from 0:00 ~ 24:00. What is the better way for me to set the chart? Also, can i set the margin of the x-axis scale? For example, x=5,10,15..... But not 10, 20,30........... Thanks ...

19. problem with stackedbarchart    jfree.org

20. Time in stacked barchart    jfree.org

I am working on a graph of time and machine state using a stacked barchart format. Right now I only want to use two colors, green for machine uptime and red for machine downtime. I know I can do this manually using a stacked barchart and the right kind of query, but I was wondering if there is already an API ...

21. StackedBarChart Prob    jfree.org

Hi All Fisrt, This is a Test for one of my Graph : C1 Now have 2 Value, The red bar-8- and The blue Bar(9)... dataset.addValue(8, "S2", "C1"); dataset.addValue(9, "S1", "C1"); dataset.addValue(7, "S1", "C3"); dataset.addValue(6, "S1", "C4"); dataset.addValue(5, "S1", "C5"); JFreeChart chart = ChartFactory.createStackedBarChart( "Message Volume", "Date", "Number of Messages", dataset, PlotOrientation.VERTICAL, false, true, false); chart.setBackgroundPaint(Color.white); CategoryPlot plot = chart.getCategoryPlot(); plot.setBackgroundPaint(Color.LIGHT_GRAY); ...

22. Combining StackedBarChart with BarChart    jfree.org

I have the following situation. I want to list internet trafic usage grouped by Port, so for each month I list the average amount of trafic for each service (http 80, ftp 22, etc...). The problem is, I also want to group it by download trafic and upload trafic. So what I want is: For each month I have two bars, ...

23. Getting corrupt display of StackedBarChart    jfree.org

Hi, First of all, I just wanted to say JFreeChart is a really nice product. My issue deals with trying to draw a StackedBarChart containing numerous bars, around 500. The chart panel is initially sized to the overall size of the chart and displayed in a scroll pane. I also size the drawing buffer the same so no scaling should be ...

24. Problems with stackedbarchart    jfree.org

Hi! I'm using both jfreechart 0.9.2 & 1.0.2 inside an apache tomcat project (W/ Eclipse IDE) (u_u'). The thing is, i get no problems with the odler apps that use jfreechart 0.9.2, but the new one, a stackedbarchart chart, throws an exception in the line Code: Select all (org.jfree.data.CategoryDataset) dataset, //data that is inside this block of code: Code: Select all ...

25. StackedBarChart with dual axis problem    jfree.org

StackedBarChart with dual axis problem by garymoore Mon Oct 23, 2006 6:16 pm I am trying to create a stacked bar chart with a dual axis (similar to the regular bar chart dual axis example) I am running into a problem as since the series is rendered on one bar the fix for the bar overlap problem means I need ...

26. Asking about StackedBarChart    jfree.org

Hi all, I'm dealing with the dataset in which there're more than one instance of a seri in a category. For example, category 1 has seri 1 ,value 10, and also seri 1, value 20. Is there any way to represent it in the StackedBarChart ? because if I use the DefaultCategoryDataset, at most one instance of a seri can appear ...

27. StackedBarChart Legend Problem    jfree.org

Hi *, i created a StackedBarChart and everything works fine except the Legend. My Chart doesn't display the legend. Please help. Thanks. My Code: final JFreeChart chart = ChartFactory.createStackedBarChart( "Number of Problems", // chart title "Category", // domain axis label "Value", // range axis label dataset, // data PlotOrientation.VERTICAL, // orientation true, // include legend true, // tooltips? false // URLs? ...

29. StackedBarChart Problem    jfree.org

Hi Friends, I am trying to generate a StackedBarChart, but its not able to sum up all the series values in a category. The y-axis range is restricted to the the highest Series value. Other series values in the category are behind the highest bar. Created the chart first with null dataset, Then adding the dataset using Plot.setDataset(dataset) and the plot ...

31. Is a combined BarChart and StackedBarChart possible?    jfree.org

Hi. Is it possible to have a chart like this? (I tried inserting an image here, but no.) What I'm thinking of is a chart with two bars, side by side, for each month or whatever. One of the bars should be a stacked bar, the other not. I can attach a bar renderer to a stacked bar chart, but I ...

32. StackedBarChart Labels on top of each other    jfree.org

I have some charts where the bars are very small. This causes a problem for stackedBar charts. I end up with the label for one part being on top of the label for another part of the stack. For instance, if one of them is 0, then they are directly on top of each other. Any help is greatly appreciated.

33. Issue with very small values in StackedBarChart    jfree.org

Your data points span a range from 1 to 5000. Say you plot the chart on an axis that's 500 pixels long. That's a scale of 10 units for each pixel. If a datapoint is thus smaller than 10 it won't show up at all, because it takes up 0 pixels on the scale you're using. And even if it's larger ...

34. StackedBarChart with TimePeriodValuesCollection    jfree.org

You'll need to use the TimeTableXYDataset class. The TableXYDataset interface really just guarantees that for a given x-value in one series, there is a data item in every other series...so you can compute stacked values. The TimePeriodValuesCollection needn't have that property, so it doesn't implement the TableXYDataset interface and can't be used directly for stacked bar charts.

35. How to write Total at top of each Stack(StackedBarChart)?    jfree.org

Hello, i would like to create a Chart like StackedBarChartDemo3 that can show totals of each stack at the top. I have dowloaded the source of StackedBarChartDemo3 and ExtendedStackedBarRenderer Now i have two problems? 1)The method renderer.setToolTipGenerator(new StandardCategoryItemLabelGenerator()); thows error: Method is not applicable for the argument... 2)The method RefineryUtilities.drawRotatedString(..) does not exist? What to do now? kind regards Martie

37. Changing Legend Format in StackedBarChart    jfree.org

I am trying to change the legend format in a StackedBarChart. I would like to not only show the categories that are being stacked but also the value for stack. For instance, the legend now show TT and I would like to change it to TT = 5. Where 5 is the value of TT in the stacked bar chart. I ...

39. How to show total value of StackedBarChart on top of bar?    jfree.org

Hi everyone, I am using a StackedBarChart, consisting of serveral categories, each containing several series, each showing it's own value inside series section of the bar. What I want to do is, show the total amount of the bar (i.e. the total height of the bar or sum of the added series values) on top of each bar. How can I ...

40. StackedBarChart with TimeSeries    jfree.org

41. StackedBarChart - Floating type bars    jfree.org

I need to create a Floating StackedBarChart as shown in the attached image. How to make the y axis start at the indended position rather than at 0(ie floating bars above the x axis). Secondly how do i put the x axis label "Jan","Feb". Third is how to create shapes and plot them on the stacked bar chart and make them ...

43. StackedBarChart problem    jfree.org

by Shade Thu Aug 28, 2008 9:00 am I did this, like in one of demo files, but it's still there: Code: Select all // get a reference to the plot for further customisation... CategoryPlot plot = (CategoryPlot) chart.getPlot(); ...

44. TimeSeriesCollection & StackedBarChart    jfree.org

Hi, Is there a way to build StackedBarChart using a TimeSeriesCollection ? There is no combination of this in the demo. I tried to change my XYBarRenderer for a StackedXYBarRenderer but I got the following ClassCastException: Exception in thread "main" java.lang.ClassCastException: org.jfree.data.time.TimeSeriesCollection at org.jfree.chart.renderer.xy.StackedXYBarRenderer.findRangeBounds(StackedXYBarRenderer.java:199) at org.jfree.chart.plot.XYPlot.getDataRange(XYPlot.java:4025) at org.jfree.chart.axis.NumberAxis.autoAdjustRange(NumberAxis.java:426) at org.jfree.chart.axis.NumberAxis.configure(NumberAxis.java:409) at org.jfree.chart.plot.XYPlot.configureRangeAxes(XYPlot.java:1164) at org.jfree.chart.plot.XYPlot.setRenderer(XYPlot.java:1454) at org.jfree.chart.plot.XYPlot.setRenderer(XYPlot.java:1429) at org.jfree.chart.plot.XYPlot.setRenderer(XYPlot.java:1416) Thanks, Stephan

45. [StackedBarChart] how to show the total value    jfree.org

Greetings! i got a problem. If i create a stacked bar chart..and i'd like to show for each stacked bar chart, the total value of each bar..how can i do it?i already show the values for each entity that compeses the stackedbar..but i need also the total value.. c ya tnx in advantage..

48. Is it possible to show values for StackedBarchart on chart?    jfree.org

hi Can you please let me know how I can show values of each item on the chart itself? What is want the chart to do is showing the value as illustrated on the following image: So far I was unable to do it and the above chart is a mock one. It is also good for me if I could ...

49. StackedBarChart - Change Series Labels    jfree.org

Hi All, Using the stacked bar chart. Would like to change the Series Labels. Instead of Series -1, Series -2. Would like to do something like : Cars, Trucks, Motorcycles .... etc, rather arbitrary labels. The road block is it seems to be expecting the CategoryDataset, and this doesn't seem to be a modifiable object. (Plenty of Get's, no Set's). It's ...

50. StackedBarChart issue for SymbolAxis    jfree.org

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 StackedBarChart issue for SymbolAxis A free public discussion forum for the JFreeChart class library. Post a reply 7 posts Page 1 of 1 StackedBarChart issue for SymbolAxis by martin79 Wed Jan ...

51. help regarding JFreeChart StackedBarChart??    forums.oracle.com