XYBarRenderer « Renderer « JFreeChart Q&A





1. XYBarRenderer.setMargin() question    jfree.org

I have tried every possible value for setMargin() but cant get my bars to be any larger than 50% of the available space. I am creating a histogram with 20 bins and 5 integer data elements [0,1,2,4,5]. Code: Select all double[] data = new double[] {0,1,2,4,5}; int bins = 20; // colors and line styles Paint backgroundPaint = new Color(0xffffff); Paint ...

2. Strange behaviour (bug?) with XYBarRenderer    jfree.org

Thanks for the report. The problem occurs because all the y-values are the same (9 in your example) which results in a very short axis range (8.999999...99 to 9.000...01). And that is causing problems when drawing the bars (PRexceptions are being thrown by Java2D). In the second case, the problem is masked because createTimeSeriesChart() creates a y-axis that forces zero to ...

3. Outline in XYBarRenderer - still has problem ?! Workaround ?    jfree.org

Hi, I'm trying to use XYBarRenderer for which the space between two bars should be zero (I want them to stick together). I've been looking for examples and reading through the forum, and up to now I could state that there was indeed something lacking there, in 2004 already. It has been planned to add a flag to tell whether or ...

4. BarRenderer3D for XYBarRenderer    jfree.org

The 3D effect in the CategoryPlot is a bit of an ugly hack, so I didn't translate it across to the XYPlot class. A better way to implement this will be with a real 3D engine (maybe using JOGL) and that's something that I'm planning for the medium term (a few people have asked me to publish a road-map for JFreeChart...I'm ...

5. SegmentedTimeLine and XYBarRenderer    jfree.org

I am facing a problem when I use segmented timeline for a timeseries and set the renderer as XYBarRenderer. The bars that are rendered are fine for the fist few points (and correctly skip the excluded dates), but then subsequently some of the bars are displayed with near-zero width (almost just a thin line) instead of a bar. Infact whatz surprising ...

6. XYBarRenderer in CombinedDomainXYPlot    jfree.org

Hi, I'm actually working on my master thesis and I'm using JFreeChart to visualize things. I have a bunch of signals which I currently display all together in a CombinedDomainXYPlot. That works good. I'm also able to animate the signal flow over the time with the help of a slider that controls the data subset that is selected for the actual ...

7. XYBarRenderer regression (?) from 1.0.9 to 1.0.10    jfree.org

public Range findRangeBounds(XYDataset dataset) { if (dataset != null) { return DatasetUtilities.findRangeBounds(dataset, false); } else { ...

8. PB displaying label on top of XYDataset using XYBarRenderer    jfree.org

Hello, I'm new on this forum and I'm a newbie on JFreeChat and I get problems to do what I want. I try to create a Chart using XYPlot with a XYDataset and a XYBarRenderer. I'm using as well a "labelgenerator" extending AbstractXYItemLabelGenerator. I tied to display a label on the top of each XYDataset.However, those label are truncated, the top ...

9. issue with XYBarRenderer    jfree.org

Hi, I have an XYBarRenderer that I use on a time series chart that I created like this: Code: Select all final TimeSeries timeSeries = new TimeSeries("Threats", Day.class); timeSeries.add(new Day(1, 8, 2008), new Integer(10)); ...





10. Need advice on customizing XYBarRenderer    jfree.org

Hello, I have the developer's guide, and with its assistance I was able to extend XYBarRenderer and override the drawItem() method to suit some of my needs. However, I'm still a bit unsure of the best way to achieve the type of display I require, and I could use some advice. I have a dynamic plot in which the domain axis ...

12. Surprising change to default behavior of XYBarRenderer    jfree.org

Hello. I observed in the change of the appearance of XYBar charts between V 1.0.10 and V 1.0.11. In the example plot in [http://www.jfree.org/jfreechart/api/javadoc/index.html] for Class XYBarRenderer the bars have two new features by default. One is the shadow to the right of each bar (I figured out how to turn that off). The other is the vertical white line near ...

13. XYBarRenderer: how to center on xy point?    jfree.org

I have an XY overlay chart with a line chart and a bar chart. The bar chart is using a XYBarRenderer (new StandardXYBarPainter()). The line items are shown correctly an the x locations. The bar items just _start_ at the x locations and end at the subsequent value. How can I shift the bars to the left so that the center ...

15. XYBarRenderer    jfree.org

XYBarRenderer A free public discussion forum for the JFreeChart class library. Post a reply 2 posts Page 1 of 1 XYBarRenderer by yottzumm Fri Oct 02, 2009 1:54 am I am trying to plot a bar chart on top of a line chart. The height of the bars should go from the min value of the line chart to ...

16. Layered XYBarRenderer    jfree.org

Hi, i need some help, from the begining, in my program users are assigned to tasks in some period of time, in the same time to one tasks may be assigned couple of users i'm useing XYBatChart, on range axis have Dates values on domian axis String values (tasks for users), so im presenting users assigned to task in some period ...





17. XYBarRenderer on a XYPlot    jfree.org

I use the following code for creating a Bar chart using XYBarRenderer/XYPlot. I want the simplest of all bar charts. Two differently colored bars for each date interval. So lets say, Week 1 get red+blue bar with two different values , and Week 2 get the same, and Week 3 , etc. Super simple. Code: Select all @Override protected ...