BarRenderer « Renderer « JFreeChart Q&A





1. Why doesn't itemMargin in BarRenderer work?    jfree.org

Hi! Everybody, I need to set the spacing between the bars with in a single category I'm using the following code... final CategoryItemRenderer renderer = plot.getRenderer(); final BarRenderer3D ren = (BarRenderer3D) renderer; ren.setItemMargin(0.1); And also I need to set the amount of space reserved at the start of the axis. and the amount of space reserved at the end of the ...

2. How to change visibilty with BarRenderer ?    jfree.org

Not all renderers respect the 'seriesVisible' flags yet, and BarRenderer is one of them, so there isn't an easy way to do this yet. The hard way is to remove the series from the dataset entirely (assuming you are using a dataset that supports removing a series - otherwise you could create a whole new dataset and replace the old one), ...

3. CategoryPlot and BarRenderer issue    jfree.org

Code: Select all public class CustomCategoryItemLabelGenerator implements CategoryItemLabelGenerator { private String textLabel = null; public CustomCategoryItemLabelGenerator(String textLabel) { this.textLabel = textLabel; } ...

4. Question on the drawItem function in BarRenderer Class    jfree.org

After I call the initialize function and get the CategoryItemRendererState object to pass into my drawItem function, is it possible to call the drawItem function and only have it fill in part of my bar on my bar renderer? I need multiple colors in my bar...so I would need to call drawItem more than once.

6. Using LinearGradientPaint (java 6, Batik) with a BarRenderer    jfree.org

well, simple: If JFreeChart exports to PNG correctly, draws to the screen correctly, then we can safely assume that JFreeChart is not the cause of your problems. JFreeChart makes no use of any special features of Batik. However, JFreeChart assumes that Batik obeys to the Graphics2D contract spelled out by the reference implementation (also known as AWT). So if JFreeChart rendering ...

7. Associating a BarRenderer with a LineAndShapeRender    jfree.org

I need to place a shape on a specific area on a bar. Is there anyway to control this? The dataset associated with the barrenderer always has a value of 1.0. I will need to place a shape anywhere between 0.0 and 1.0 on the barrenderer. Can anyone offer up a suggestion?

8. Category Plot, BarRenderer.setMinimumBarLength bug.    jfree.org

I was attempting to answer this post assuming they meant CatergoryPlot & BarRenderer. I noticed there is a setMinimumBarLength () method on BarRenderer but it only works for HORIZONTAL charts with non-inverted axis or for VERTICAL charts with an Inverted axis. For VERTICAL: The renderer calculates the minimum bar width OK but doesn't adjust the Y value so the bar is ...

9. Turn-off GradientBarPainter in BarRenderer    jfree.org

There are two types of bar chart. The ordinary bar charts are created using a CategoryPlot/CategoryDataset, and the renderer is a BarRenderer (or StackedBarRenderer). Another type of bar chart is created with an XYPlot/IntervalXYDataset (typically the bars come from time series data, but that's not a hard requirement), and in this case the renderer is an XYBarRenderer (or StackedXYBarRenderer). These two ...





10. BarRenderer - shadowsVisible property    jfree.org

In the class BarRenderer, there is a boolean property named shadowsVisible. These are the get and set methods for that property. /** * Returns the flag that controls whether or not shadows are drawn for * the bars. * * @return A boolean. * * @since 1.0.11 */ public boolean getShadowsVisible() { return this.shadowsVisible; } /** * Sets the flag that ...