XYBarChart « Chart « JFreeChart Q&A





1. JfreeChart: Scroll XYBarChart Horizontally - (chart translation and navigation)    stackoverflow.com

I am trying to scroll my XYBarChart horizontally, I am following one of the JfreeChart's Demo "TranslateDemo1.java" in which the source code you can find here: http://code.google.com/p/cori-chenxx/source/browse/aliper/trunk/aliper-core/src/test/java/com/alibaba/aliper/TranslateDemo1.java?spec=svn148&r=148 The source code ...

2. Newbie - dynamic XYBarChart    jfree.org

Hi all, I'm trying to create a simple GUI program that has a random number generator running in a background thread, and an XYBarChart showing the distribution of the generated numbers. The chart gets more or less continuously updated as more random numbers get generated. Now, I thought this would be as simple as having a HistogramDataset linked to a JFreeChart ...

3. XYbarChart problem    jfree.org

Hi, I have made a XYbarChart with two series and i have a big problem. Indeed, the color of the second serie always hides the color of the first one when the second is higher. So i can only see the first one when it is higher than the second. How can i do to see both of them in every ...

4. A 3D XYBarChart?    jfree.org

It's not possible, only with the CategoryPlot. There were too many hacks required to get this working with the CategoryPlot, so I didn't even attempt to match the same behaviour with the XYPlot class. I'm actually not a fan of the 3D "effect" (the charts are still 2 dimensional), I think the information in the charts is clearer when presented "flat". ...

5. Can anyone help to create a XYBarChart??    jfree.org

Hi Divya by sac Thu Apr 06, 2006 1:16 pm try this import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.text.SimpleDateFormat; import java.util.StringTokenizer; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.CategoryAxis; import org.jfree.chart.axis.CategoryLabelPositions; import org.jfree.chart.axis.DateAxis; import org.jfree.chart.labels.ItemLabelPosition; import org.jfree.chart.labels.StandardCategoryItemLabelGenerator; import org.jfree.chart.plot.CategoryPlot; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.renderer.CategoryItemRenderer; import org.jfree.chart.renderer.StackedBarRenderer; import org.jfree.chart.title.TextTitle; import org.jfree.data.CategoryDataset; import org.jfree.data.DefaultCategoryDataset; import org.jfree.ui.ApplicationFrame; import org.jfree.ui.RectangleEdge; import org.jfree.ui.RefineryUtilities; public class ...

6. XYBarChart, controlling the domain.    jfree.org

XYBarChart, controlling the domain. by JoshRountree Wed Apr 12, 2006 5:09 pm Hi guys, first off, let me say that JFreeChart is an awesome software package, and I have used it in many of my courses at school. Here's my scenario. I am tracking events in time, and logging them in a log file, the events are logged as a ...

7. XYBarChart simple exemple    jfree.org

8. XYBarChart invisible for a rangesize >100    jfree.org

Hello, I have got a problem with the XYBarChart. If the value range is wide (>100) then the bars are invisible. If I zoom into a smaller range (<100) then I can see the bars. I use XYLineAndShapeRenderer to render the chart. Could it be, that there is a default setting for the range? Thank you A.T.





10. Crosshair does not work on HORIZONTAL XYBarChart?    jfree.org

It work fine on vertical XYBarChart.But when I change the orientation to PlotOrientation.HORIZONTAL it does not work. It draw a horizontal line but it isn't in the position I clicked. Thank you very much. Code: Select all JFreeChart chart = ChartFactory.createXYBarChart( null, ...

11. xybarchart different color for positve and negative values?    jfree.org

i am creating a xybarchart i have the chart working with all the values i wanted to plot. but i was wondering if there is an easy way to make the negative values/below the zero line, show in RED on chart and positive values /above the zero line , show in GREEN on chart thanks

12. How do I make an XYBarChart dynamic?    jfree.org

How do I make an XYBarChart dynamic? by photog Mon Nov 27, 2006 11:25 pm I'm new to Java and to JFree. As such I'm sure that there are numerous rookie mistakes in my code. But I just can't seem to make an XY Barchart be dynamic. I've mixed code from a few of the demo apps provided with JFree ...

13. XYBarChart optimization    jfree.org

14. Problem with XYBarChart when plotting a single value    jfree.org

Hello, I have noticed that when I use the automatic range in a XYBarChart and setAutoRangeIncludesZero(false) and (for whatever the reason) there's only one value in the dataset, the bar corresponding to this value is not drawn. I guess that since there is only one value in the dataset the range cannot be calculated. I fixed it checking how many values ...

15. XYBarchart - item label position - query    jfree.org

Hi All, I have a XYBarchart that has 1 series on it. I'm using the XYBarRenderer. I am able to label the items with custom labels. I am ***not*** able to position the item label below the xAxis line as positioned in the BarChartDemo3.java chart. Could anyone help me on this. Many Thanks. Yash

16. XYBarChart    jfree.org

Hi! Now I have a problem because I don't want the unit value to be displayed on the range axis because there isn't real value to show to the user (it's just event to happen). But if I use this rangeAxis.setVisible(false); it will take also the title away from range axis. And I want to keep the chart look like same ...





17. Can we display the itemLabel for a XYBarChart outside the pl    jfree.org

Hi David, I am evaluating jFreechart to use it in our project. I need to display the itemLabel below the bars.(xAxis Line) outside the plot area.This is an urgent requirement for me. Could you please let me know if I can subclass the renderer, override some method and get to display the itemLabel below xAxis line(outside the plot are) Million thanks ...

18. Values on XYBarChart    jfree.org

Hi!!!! I would like to know if there is any way to show in a XYBarChart the values of each bar above them like it can be done on a BarChart. Maybe it isn't posible, but if anyone knows any way or anything similar to show the values of each bar, please tell me. Thanks anyway

19. Help with XYBarChart    jfree.org

Hi! I'm from University of Mato Grosso, Brazil. We are doing a research and I need to draw a Chart just like the XYBarchartDemo 7. I'm trying to create a XYBarChart with a TimePeriodValuesCollection, but instead using a double value in Y axis, I need to use a Label/Category/Series just like the XYBarchartDemo7. And I would like to know, if it's ...

20. How to adjust XYBarChart    jfree.org

Hi all, I'm new to JfreeChart, i've created a XYBarChart like this TimeSeries ss = new TimeSeries("test", Day.class); for (History history : historyList) { Day date = new Day(history.getDate()); ss.add(date, history.getTotal()); } TimeSeriesCollection dataset = new TimeSeriesCollection(); dataset.addSeries(ss); // create XYBarChart JFreeChart chart = ChartFactory.createXYBarChart("test", "", true, "", dataset, PlotOrientation.VERTICAL, false, false, false); But the default appearance looks really bad. I ...

22. hide legend in xybarchart when value is 0 in CategoryDataSet    jfree.org

hi paradoxoff, Thanks for the tricky solution and a nice discussion on the issue. The following is the detailed code that fixed the issue. final CategoryPlot plot = chart.getCategoryPlot(); final BarRenderer barRen = (BarRenderer) plot.getRenderer(); //new legend collection to show only for bars whose values are not null or 0 LegendItemCollection newLegends = new LegendItemCollection(); //existing legend collection LegendItemCollection existingLegends = ...

23. I do not want to display Sat/Sun dates on the XYBarChart    jfree.org

Hi, I'm using DateAxis for the x-axis of the XYBarChart with Day as the DateTickUnit. If I have date ranging over a week, the weekend date is displayed with no value. I do not want to display the weekend days saturday or sunday. How do I suppress these days? I use XYPlot and ClusteredXYBarRenderer to generate the chart. Please suggest how ...

24. XYBarChart: plot and chart background unable to be the same    jfree.org

Yes, I set that to 1f. seeing so many posts about my code, I think I will post my code in its entirety tomorrow when I'm back at work. As a quick check, do other people have this problem too, where you explicitly set the back ground for the chart and plot yet they're both slightly different shades?