height « Layout « JFreeChart Q&A





1. How to set height to the SimpleHistogramBin bin in SimpleHistogramDataset?    stackoverflow.com

I used setItemsCount() method to manage height of the bin in my SimpleHistogram from JFreeChart. Yet, it does something weird: when I set for example 1, it shows 1.4 Besides this method's ...

2. Resize Vertical Tick Label Height (XYStepChart)    stackoverflow.com

I've got the following chart made with JFreeChart: alt text Is it possible (and if it is how) to extend the dates on the x-axis so that they contain the year, ...

3. Dynamically setting width and heigt according to client screen resulotion in jFreeChart.createBufferedImage(width,Height,info)    stackoverflow.com

I have a problem regarding JfreeChart.createBufferedImage(width,Height,info) i am creating a jFreechart in java and showing it in JSF page like this JfreeChart.createBufferedImage(width,Height,info) Right now i am passing width and height as hardcoded attributes ...

4. JFreechart set height of vertical data    stackoverflow.com

Has anyone an idea how i could set the height of the data vertical wise?

5. Fixed height for legend and data area    jfree.org

It isn't supported directly by the existing code, but the idea of the Arrangement interface is that you can plug in your own class to control the layout of legend items. The difficulty is that, for a legend at the bottom of a chart say, the maximum width is fixed - if you also fix the height, then you'll potentially need ...

6. Text with dynamic height overlaps    jfree.org

Hi there, I have searhed around in the forums, found a lot of references to the dynamic-atrribute, but no solution to my problem, although I was sure other people must have had the same issue like me.. strange. So here's what my prolem ist about: I've got a band with some lines in it and one of it is dynamic, which ...

7. determining legend height    jfree.org

I am making a timechart from previously unknown data. Sometimes there are 2 series, sometimes there are 20. Is it somehow possible to get the legend height? I got 0.0 anytime. I want to keep the same chart dimensions, independent form the legend height. it should be like that: chart_height = DEFINED_CHART_HEIGHT + LEGEND_HEIGHT but how to determine legend height? ChartUtilities.saveChartAsPNG(..., ...

8. Generate charts as PNG with fixed width and optimal height    jfree.org

It isn't possible. JFreeChart will always draw the chart at the size you specify, it *never* tries to calculate the "optimal" height or width for a chart. I can understand how that would be useful, but it isn't the way JFreeChart was designed - from the outset I wanted JFreeChart to be able to accept chart dimensions from an external source ...

9. Height of Chart    jfree.org

Hello All, I would like to know if there is a possibility to decrease the size of the chart but to increase the size of the Legend where the values are displayed. I have a chart which is vertical and I want to decrease the size of the actual chart and increase the display area of the text which are longer ...





11. Saving a JFreeChart as a file, getting height & width    jfree.org

I have a method returning a JFreechart - private JFreeChart createChart(final XYDataset dataset, final String reportName) { JFreeChart chart = null; if(reportName != null && reportName.equals("it43")) { chart = ChartFactory.createTimeSeriesChart("Indirect, Direct, and Total Income", "Time (months)", "", dataset, true, true, false); } else { chart = ChartFactory.createTimeSeriesChart("Indirect, Direct, and Total Income", "Time (months)", "", dataset, true, true, false); } chart.setBackgroundPaint(Color.white); StandardLegend ...

12. controlling internal width and height of chart    jfree.org

Hi, I am wondering what is the API to set the internal height and width of a chart. I am not sure if my terminology is right, but this is what I mean - The complete chart is the actual chart area plus the xaxis and yaxis title and tickmarks. I want to control the the height and width of just ...

13. Setting the height and width of the chartImage dynamically    jfree.org

Hi All, I've set a static image size in the saveChartAsImage method. I generate charts dynamically so the problem occurs if the number of legends increase. The image size being static, the legend titles take all the space and the chart is compressed. So please help!!How do i control the image size through my code..somehow in JSP.. Thanks and regards, Priyanka ...

14. Histogram bin height spikes    jfree.org

This is not an apples-to-apples comparison. The first plot is 3d, and the second is not. I would recommend you first compare the two graphs in 2d since it is easier to compare the relative height of bars. It would also be easier if you had an identical x-axis (as close as possible) to attempt to line up the data. What ...

15. Increase height and keep fonts proportion    jfree.org

I embedded a multiplot chart in a webpage through a Java applet. The user can add plot dynamically in pushing a button. Then I would like that chart height increases according to the new plot so then each plot keeps the same size. If I just change the height (and NOT the weight) fonts and images leave proportion and become ugly ...

16. How to get the width and height from one chart    jfree.org

Hello I am using JfreeChart 1.0.11 I have created one chart like this JFreeChart chart = ChartFactory.createPieChart("Pie Chart Demo 1", dataset, true, true, false); Then, I have saved it into one JPG file ChartUtilities.saveChartAsJPEG(new File("Test1.jpg"), chart, 300,300); But, I would like replace 300, 300 with the width and height from the original chart to keep the good ratio. How can I ...





17. How do I get plotarea height, width, x,y co-ordinates?    jfree.org

I am using SWT and ChartComposite to create chart. I am creating XYBarChart on this chart. when I try to get plotarea using following code: frame.getChartRenderingInfo().getPlotInfo().getPlotArea(); I get null. frame is my ChartComposite. Is there any other way to get plotarea's height, width, and x.y coordinates? I am trying to use SWT Scale which should have same width as X axis ...

18. Changing the chart height    jfree.org

Hi, I am trying to restrict my chart to have a maximum height and I've tried that using the setMaximumDrawHeight method. That does restrict the height, but because my chart is very wide, the scaling causes the text labels and axes to be gigantic. Basically I only want the plot height to be Y pixels but I'd like the scaling to ...

19. Auto Height and Width    jfree.org

We are generating pie charts with legends at the bottom but it's getting very difficult to get the correct display size for these charts. We generate them as PNG. I want to know what we should be doing to allow charts to be generated without specifying width and height (Is it possible to generate chart without this info?) Any help on ...

20. Title with hebrew letters height cuts    jfree.org

Title with hebrew letters height cuts by Unknown Sat Jan 24, 2004 11:24 pm Hi I upgraded to 0.9.16 as recommended but with titles with english letters only the letter height is fine. When I add hebrew letters then the height cuts to half or less (The graph rect starts to draw too high) - on width there is no ...