size « Layout « JFreeChart Q&A





1. how to decrease the font size in dial charts    stackoverflow.com

I am usinf jfreechart to plot the dial charts. But i want to decrease the font size. How can i do that. Thanks in advanc

2. setting chart size to fixed value in JFreeChart    stackoverflow.com

In JFreeChart graphics, if you resize the application window, the graphics are repainted according to the application window size. Is it possible to set the chart size to fixed values?

3. JFreeChart: Increase Size of Data Point    stackoverflow.com

This question was already asked here, but unfortunately the pointers provided in the answers are not working (the JFreeChart Forum is down). My question is: Using the JFreeChart library, how can ...

4. Is there a way to change the shape size in a JasperReports chart?    stackoverflow.com

I'm building a Time series based chart that graphs Time -> double value. The chart contains at least 230 points. If I use the "show lines" option the graph doesn't display ...

5. Sizing JFreeChart    jfree.org

Hello, I'm a biochemistry student, and my programming skills are a little lacking. I'm trying to use JFreeChart to plot some data, but the number of points on the xy graph exceeds a few hundred thousand, and it's pretty illegible. So I tried to put everything in a JScrollPane, but I can't seem to get the chart to stretch out without ...

6. What does size of median circle on BoxAndWhisker mean ?    jfree.org

Is there any significance to the size of the median circle on the box and whisker plot or is it just meant to scale up with size of the box ? Reason being if I have a really wide (vertical) box the circle gets so big it looks stupid... Does it need to be there or could it be a fixed ...

7. Chart correct size    jfree.org

Looking at source code of ChartPanel one can find answer: public void doSaveAs() throws IOException { 2106: 2107: JFileChooser fileChooser = new JFileChooser(); 2108: ExtensionFileFilter filter = new ExtensionFileFilter( 2109: localizationResources.getString("PNG_Image_Files"), ".png"); 2110: fileChooser.addChoosableFileFilter(filter); 2111: 2112: int option = fileChooser.showSaveDialog(this); 2113: if (option == JFileChooser.APPROVE_OPTION) { 2114: String filename = fileChooser.getSelectedFile().getPath(); 2115: if (isEnforceFileExtensions()) { 2116: if (!filename.endsWith(".png")) { 2117: filename ...

8. Problem with category labels size    jfree.org

Problem with category labels size by maxalves77 Thu Dec 15, 2011 1:06 pm Good morning, I have a problem to display the category labels completely on the x assis of the chart. Each category label is a large string which is not being displayed completely because of it's big size. So the result is that the label of one category ...

9. Applet size    jfree.org

i am writing a applet for a very small webserver. I need a time series chart. JFreeChart have the solution to this part. The other part, its the size... I dont have space for the entire JfreeChart jar file. I have 20 kb of memory size for the applet..... Someone can help ? Or know other solution... All replies are welcome! ...





10. Setting point size    jfree.org

Hello All, I'm displaying scatter graphs with a lot of points. Since they tend to cluster, I end up with blobs of points. Is there a way to alter the default size of each point? I've checked XYItemRenderer and XYLineAndShapeRenderer, but they don't offer a way to set the size. Any help would be appreciated. Thanks

11. How can I change the CategoryLabel into a small size font?    jfree.org

I am currently using jfreechart-1.0.0-rc1.jar, and I am able to generate the Bar chart, changing font size for doman & range axis, and able to do the legendtitle size. But for some reason, i wasnt able to find any help on this part of Legend issue, or maybe i dont know where to look for. As you see from my inclued ...

12. Chart Sizing    jfree.org

I try to specify the chart size with "setPreferredSize(new Dimension(x, y))", but my chart appears the size of a pencil head and I have to drag the corners to see anything. What is the correct way to display charts initially at a visible size? I have about 7 charts I would like to display and ideally it would be great if ...

15. size of text in PieItemLabel    jfree.org

16. iText file size increase when using JFreeChart JDK 1.3.1_09    jfree.org

Thought I'd just post the solution to a problem which I've spent ages investigating, so it might help others. I've written an application which uses iText and JFreeChart to generate reports via the web browser. I had developed the application locally on my machine running Java SDK 1.4 and was impressed when the file size was only 30K. However on deployment ...





17. combined Charts with different size    jfree.org

Hi, i'm working on combined Charts, i need that their sizes be different (first bigger than second). how can i do it? I tried to use the setWeight, but it did not work. Here is the piece of my code: CombinedRangeCategoryPlot plot = new CombinedRangeCategoryPlot(); String catMedia = "Mdia"; DefaultCategoryDataset dsBarra = new DefaultCategoryDataset(); dsBarra.setValue(60,catMedia,"Mdia"); CategoryPlot catPlot = new CategoryPlot(dsBarra,new CategoryAxis("Mdia"),null,new ...

18. Increase size of line on LevelRenderer    jfree.org

Hello, I have created a chart with 2 plot. The first one is a BarChart3D and the second one is a LevelRenderer. The problem is that the line painted by LevelRenderer is too fine. I need to increase the line height. Any way to change the line wide? Thank you very much.

19. Label size?    jfree.org

20. setting size to two ChartPanel don't work    jfree.org

I am having difficulties setting size to two ChartPanel, one is on top of the other. They just ignore the my setSize() call and just fill up the whole space of the dialog. It's really urgent, can anyone help? I used BoxLayout. Here is the short code snippet I tried. MyDialog extends JDialog{ public void init(){ Component center = createChartPanes(); getContentPane().add( ...

21. Small PNG Size [8-bit support]    jfree.org

Hi, JFreeChart allows you to draw to arbitary Graphics2D objects derived from any Image object. If your image is a 8Bit image and your PNG encoder supports the creation of 8-Bit PNGs, then sure - you can create such images. The com.keypoint PNG encoder supplied with JFreeChart assumes that the images are in the DirectColorModel (=24 bit per pixel). The Advanced ...

22. Change size of label Item graphic    jfree.org

Hi. JFreeChart works excellent for me just one small nag. I am developing an application that display charts on TV screens, therefor I have custumised the look of the charts quite heavily to enlarge fonts, using a wider stroke etc to make everything clearly visible on the low resolution TV. There is one thing I cannot figure out how to change ...

23. Help me please! I can't create pdf size more 65*65    jfree.org

Help me please! I can't create pdf size more 65*65 by Yarik Wed Dec 07, 2005 3:30 pm I need help! I can't create pdf size more 65*65 in JFreeChart 1.0.0 Example For Create PDF Code: Select all package Action.model; import com.sun.image.codec.jpeg.JPEGCodec; import com.sun.image.codec.jpeg.JPEGEncodeParam; import com.sun.image.codec.jpeg.JPEGImageEncoder; import java.awt.Graphics2D; import java.awt.geom.Rectangle2D; import java.awt.image.BufferedImage; import java.io.File; import java.io.OutputStream; import java.io.BufferedOutputStream; import java.io.DataOutputStream; ...

24. Can I fix the size of the legend?    jfree.org

25. Can I fix the size of the legend?    jfree.org

26. Increasing legend size    jfree.org

27. Setting the size of a Legend    jfree.org

28. Problems with Size of Graphics    jfree.org

I'm using a XYPlot with DateAxis to graph a data in a project, my problems is when I render my graph in a width like 500px I get in x-axis duplicated values(this values doesn't appear in the graph bu if appear in the x-axis) I read the forum and I found a post with the same behavior and other post I ...

29. How can I make the TITLE SIZE FIXED !?    jfree.org

I am have a XYLINECHART and i wanna to make the size of the title fixed. FOr example i create the same graph 3 maybe 4 times, but everytime with a diferent size, and i would like that the title size remains with the same value for all the graphs. Thanks, and sorry for the english.

30. One Label with 2 Font Sizes    jfree.org

Hi, I am using Jfree chart in our application to develop pie charts. I have label like Mangoes (2 nos).I want Mangoes to be with Font size 15 and (2 nos) with font size with 8. Pls help how can i do that. I m using below settnigs piePlot.setLabelFont(new Font("Arial",Font.BOLD,15) ); piePlot.setLabelGenerator(new StandardPieSectionLabelGenerator("{0} ({1} nos)")); But total takes same setting. Regards ...

31. Setting font size in legends    jfree.org

33. how to increase the size of chartpanel Dynamically    jfree.org

hai, i have a problem using jfreecharts. i have attached the chartpanel to a Jscrollpane.Based on real time values the chartpanel should resize.i.e for big chart the size of the chartpanel should be big and i will use scroll bars to view the data and for small graphs the chart panel should be small so that i don not use scroll ...

34. How to set data area to fixed size?    jfree.org

JFreeChart lays out the chart from the outside in, so the data area is just the area that is left after the titles, legend and axes have been drawn...so there isn't a reliable way to get a fixed size data area. You might be able to use the setFixedDimension() method in the axes (this is how the combined plots align the ...

35. Size of entity area    jfree.org

This depends on the renderer. Where a shape is drawn, we try to use the shape as the "hot spot". If there is no shape (e.g. a plain line chart), a default hot spot is calculated. There is a method setDefaultEntityRadius() in the AbstractXYItemRenderer class that sets the default size for this hot spot.

36. Optimize graphes size...    jfree.org

38. JFreeChart Font Sizes    jfree.org

Hello, There appears to be a method of changing the font type/size of the title of a JFreeChart. What about changing the type/size of the rest of the information? This includes: Vertical Label Horizontal Label All of the information stored within the DefaultCategoryDataset Is this even possible, and if it isn't, why is it not possible? I would have thought changing ...

39. Fixed size for legend block    jfree.org

40. Set the size of a chart    jfree.org

Hi. I can't find the method by which one can set the size of a chart. I add my chart at a chart panel. Then the chart panel is added at a scroll pane which settles in a frame (jInternalFrame actually). The scroll pane creates vertical scroll bar because the chart is quite bigger than itself. I need to make the ...

41. Controlling size of chart    jfree.org

The size of the chart is controlled by the width and height arguments you pass to the JFreeChart.draw() method. If you are displaying the chart in a ChartPanel, then the width and height will be a function of the size of the panel, which is controlled by the layout manager in your user interface.

42. What does size of median circle on Box and Whisker mean?    jfree.org

Is there any significance to the size of the median circle on the box and whisker plot or is it just meant to scale up with size of the box ? Reason being if I have a really wide (vertical) box or only few boxes the circle gets very big. Thanks Tom

43. Finding out dateTick unit size    jfree.org

Hi, I'm using TimeSeriesCollection to plot a line graph based on a given date range. I'm displaying Date at X-Axis and Count (number) at Y-Axis. The graph is implicitly calculating the time-interval for the Date values at X-Axis. Is there any way I can get access to that time-interval (which is calculated implicitly by the graph) between X-Axis values? I tried ...

45. How to reduce the size of SVG    jfree.org

Hi, I am using JFreeChart and i am exporting that JFreeChart as SVG using batik. That chart is then embedded into a jasper report. As the report contains many charts depending on the data, the size of the report is too much. Can anyone help me to reduce the size of SVG containing the JFreeChart so that the size of the ...

46. How to enlarge size of Shape returned-DefaultDrawingSupplier    jfree.org

I need to add the shape returned by getNextShape() of DefaultDrawingSupplier to a JPanel. I am using the below code. Shape gets displayed in very small tiny image.. How do I enlarge (resize) the size of the shape returned by DefaultDrawingSupplier .... setPreferredSize on JPanel is not working..( pl see below) Thank you again Niranjan. Code: Select all DefaultDrawingSupplier dds = ...

47. Print Document Size    jfree.org

48. Size of subplot    jfree.org

49. Changing the size of shapes that are drawn    jfree.org

I have seen a few post about this but no one seems to have a solution. Does anyone know if it is possible to change the size of the shapes that are drawn on a series. I am using an XYLineAndShape renderer, I want to change the size of specific shapes in a series, is this possible? Thank you.

50. Optimal size calculation    jfree.org

I'm new to using this package so forgive me if is obvious. Is there a way to calculate the optimal size of a chart when generating a rendered image? I want to make sure it's large enough to display all the labels without overlap or clipping. The number of categories can vary greatly depending on the query selected.

51. java heap size    jfree.org

Yes, this is possible...although I'm not sure if you mean 500,000 data points or 5 million? The biggest memory requirement will be for the data itself - if you store the data points as double primitives you'll need two doubles per data item (x and y), and 8 bytes per double. So 2 x 8 x 5 million equals roughly 80 ...

52. Change size in JFreeChart    jfree.org

Hi!!! I'm trying to show several Charts in the same window, but it isn't posible because the default size is too big to show more than one chart in the same window. Is there any way to reduce the size of a chart? I'm trying to insert a BarChart and below a PieChart, if this helps. Thanks

54. Is it possible to synchronize the size of two or more charts    jfree.org

Hi, I was wondering if there is a possibility to set the size of the inner chart panel, so that two or more charts would have the same size. My problem is that in one chart the valueAxis has a range from 0-100 while the other chart is a gantt chart with longer names on the valueAxis such as: K144775, E6 ...

55. Keep font aspect ratio or size?    jfree.org

I'm currently having this problem, was an answer ever discovered? This manifests in the demo; using ChartPanel, the graph shows. If I resize the panel, it gets correctly re-sized, but in a way that seems to simply scale and then re-render everything. Specifically, this seems to cause the aspect ratio to skew. I've bought the developer guide, but the words "aspect ...

57. JFreeChart print job size.    jfree.org

I have noticed that when printing a Chart from the JFreeChart web start demo, that the print job shown in my print queue shows a size of 96.3mb. This seems to happen regardless of the Chart type, and is nearly always 96.3 mb. To further investigate, I tried printing a Chart to a PDF writer (in my case Cute PDF), still, ...

58. XYtimeSeriesDataset Maximum Size?    jfree.org

hi, im using Jfreechart to developing XYtimeSeries, i have a question, what is the maximum size of the Dataset used to fill a new Serie on the XYTimeSeries, i have 525600 registers for each Dataset and 4 graphics (series) of this size maximun on a chart, does this support it? serie1=525600registers serie2=525600registers serie3=525600registers serie4=525600registers XYTimeseries.add(serie1)....serie(4) chart it it drops an heap ...

59. how to change legend size    jfree.org

60. Margin/Graph Size    jfree.org

61. Unable to size the chartpanel    jfree.org

Hi, I am trying to create a Timeseries chart in an eclipse RCP application. In the createPartControl() method of View.java file, i have following code. public void createPartControl(Composite parent) { parent.setLayout(new FillLayout()); container = new Composite(parent, SWT.EMBEDDED); container.setLayout(new FillLayout()); JFreeChart rflChart = createTimeSeriesChart(getTimeSeriesDataSet (callsequence)); ChartPanel panel = new ChartPanel(rflChart); Frame canvasFrame = SWT_AWT.new_Frame(container); canvasFrame.add(panel); } I tried setting up panel preffered ...

62. Subplots and legend size    jfree.org

Hi all, I've a problem with a graph, i've from 1 to 8 subplots. The first has a weight of 20 and the others 1. To have a graph like this : | | | |______________ |______________ |______________ but when the legend takes two lines my subplots ( with weight 1 ) disappears. So my questions are : - how to ...

63. Printjob size 1.0.5 vs. 1.0.9    jfree.org

Hi, I recently upgraded from jfreechart 1.0.5 to 1.0.9 and had to discover that printing some graphs now makes up for huge print jobs (in windows). e.G. the PiePlotDemo1 in the examples is about 50k with JFreeChart 1.0.5 and about 60MB with 1.0.9. I read in other threads that this is most often due to transparencies. But assuming that the demo ...

64. Change Scatter Chart Item Size    jfree.org

XYPlot plot = (XYPlot) chart.getPlot(); XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) plot.getRenderer(); renderer.setSeriesShape(0, new Rectangle2D.Double(-4.0, -4.0, 8.0, 8.0));

66. Change size of legend picture    jfree.org

67. Save Chart with small size.    jfree.org

Hi, I want to create PDF with my chart. I use IText and I already did this for PDF with "normal" size ( higher than the size of my chart ) : I used JFreeChart.draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area) and it works very well. I have a problem when the size of the Rectangle2D is smaller than the size of the chart ...

68. Tick Spacing and Fixed Tick Units Regardless of Chart Size    jfree.org

I'm trying to create a TimeSeries chart with a DateAxis on the domain range such that the space between the ticks is 3cm. How can I accomplish this? See Chart 1 below. I've already tried making the chart wide but it seems like each time I widen it, the tick units just increase beyond what I need them to be. See ...

69. Chart objects auto sizing    jfree.org

Greetings!! this is a difficult question for me to explain. so be patient plz Well, some one thought about an algoritm to autosize the chart, value, labels, display labels position/rotation/anchor, font size... depending the amount of data? for example..if i got a label which occupies a x length.. the distance between the right and left sizes of the chart is autosized? ...

70. Change Shapes size dinamically    jfree.org

OK, if you look in the XYLineAndShapeRenderer class (if that's the one you are using) at the drawSecondaryPass() method, you'll see where a Shape is fetched and translated into position...at that point, you could add some code to scale the shape as well (scaling it before it is translated would be easiest).

71. Set a chart size dynamically according to its content?    jfree.org

I want to set the size of chart before draw it according to its content. For example: If I have 5 tasks, the height of chart is 300px. If I have 10 tasks, the height of chart is 500px. (Now you may figure out each task takes 40 px) If I have 20 tasks, the height of chart is 900px. If ...

72. howto change size of axis-description    jfree.org

howto change size of axis-description by schlumsch Mon Mar 30, 2009 9:54 am Hello everyone, im new with jfreechart and got a problem setting font-size of axis description in my barplot. I hope this question is not already answered here... About my Problem: My chart looks like this: http://www.schlumsch.eu/pics/barchartbsp.gif As u can see, the description of y-axis is sometimes cut ...

73. To change size of Shapes & starting time for StackedChart ?    jfree.org

Hello everyone, I have 2 questions. 1. size of shape I have created stacked plot chart with shapes. It works fine. But, now I would like to change the size to smaller without changing others. My code: Code: Select all XYPlot plot = null; for (int i ...

74. Handling chart and legend size    jfree.org

Hi, I have a chart and some legends. I put the legends below the chart. Depending on the datasets there can be more or less legends of more or less height. If the legends grow in height the chart is getting smaller (lower). What I want is to have the chart itself always in fixed size and the legends just below. ...

75. Legend size problem    jfree.org

Hello, I am generating a Stacked bar graph and I put it in an excel file via apache POI. I use the ChartUtilities.writeChartAsPNG method, but as the result has not a good quality, I generate a bug chart and resize it to put it in the excel file. So I changed the size of the fonts of th graph, but I ...

76. jfreechart and jcommon size on disk    jfree.org

hi i hav made changes in jfreechart and jcommon jar file according to my code, more precisely i used only those class files which are actually required in my code by deleting other class files.By doing this my code is not working. i need to know whether it is feasible or not. all my doing is to develop an application which ...

78. Chart title size change when chart autosize    jfree.org

I'll try to explain this as best as I can. I'm also relatively new to JFreeChart so please bear with me. I am using JFreeChart to create some real time plots and in general, things look pretty good. I am using a standard method to create the chart, ChartFactory.createTimeSeriesChart. The chart is added to a standard JPanel and that JPanel sits ...

80. Size of line and own legend    jfree.org

Hello to everybody, now i had a question about the line size. I paint a lot of curves in my JFreeChart and one of this curves is the average-curve. The lines of this curve i want to make a litter bigger than the other ones. Is this possible? Another question is if is possible to make an own legend with some ...

81. Marker Size    jfree.org

Re: Marker Size by dweems Sat Feb 20, 2010 10:39 pm I'm having the same problem. I tried the following code that logically looks like it should work but doesn't. I'm curious why it doesn't. Code: Select all JFreeChart chart = ChartFactory.createTimeSeriesChart( "", ...

82. Fixed Label Size    jfree.org

83. Need help with label size    jfree.org

Hi, I set the label size fixed for all the labels in like label size is 30 if any of the label size is less that that I am filling that will .... LabelFirst...............10% LableSecond............20% This comes perfect when I see in the log but in the acutal image both are different size I assume this is becasue of the Font ...

84. Jfreechart chart size problem    jfree.org

Hi everyone! I'm currently developping a software in which I have to show a graphic display of a calculus... I'm using a XYLineChart and I'm now facing a small problem... I add two charts to a Jpanel which I integrate into a JScrollPane... But my JSCrollPane is like 400x200px (and I don't want to change it... for aesthetic reasons)... as a ...

85. Maintain the Chart Size when the legend increases    jfree.org

Hi... I am using JFreechart 1.0.13 and JDK 1.5. My requirement is that the front end has a fixed pie chart size say 300 * 250. The data to chart always varies in number, so when the data is large(say 15 items), the legend increases, automatically occupying the entire chart area, at one point the chart becomes invisible and only legends ...

86. How to control size of legend item graphics?    jfree.org

Hi. I find that as I generate larger and larger charts (using ChartUtilities.saveChartAsPNG()), the legend item graphics stay the same size and do not increase along with the chart. The result is that they become nearly invisible at large chart sizes. I can control the font size with LegendTitle.setItemFont(), but I can't figure out how to set the size of the ...

87. Row Keys Font size    jfree.org

Hi, I think there is a potential for terminology confusion here so I will try to be descriptive. What I want to do is quite simple: change the font size of text. This text is the Row Keys that are supplied when a CategoryDataset is created. In other words, I have a Multiple Pie Chart plot and I want to change ...

88. Size of Label : PiePlot3D    jfree.org

Hi Everyone, I use the Frameworks Jfreechart for generate a 3D chart and i am looking for how i can change the size of the label . I use a PiePlot3D object in the Jfreechart. I find how i can change the police but i can't find how i can change the size of the label. Source: Code: Select all public ...

91. how to set font size of lables in jfreechart    jfree.org

Hi all, am using jfreeline chart so in that i want to set font size of lables how to set please help me its very urgent.... below is my code:: private JFreeChart createChart1(final CategoryDataset dataset,final CategoryDataset dataset2,String labels,String tittle,String yaxislabel,String series6) { String label=labels.toString(); final JFreeChart chart = ChartFactory.createLineChart("","Date", yaxislabel, dataset, PlotOrientation.VERTICAL, true, true, false ); chart.setTitle( new org.jfree.chart.title.TextTitle(tittle, new java.awt.Font("SansSerif", ...

92. How to - increase the size of chart    jfree.org

Hi : How do we increase the size of the pie chart? I want the pie chart to be shown bigger. ie.e. i want only the size of piechart to be increased not the whole image. I tried ServletUtilities.saveChartAsPNG(chart, 500, 500, info, session);, the size of the whole image is getting increased but the the size of pie chart diagram is ...

93. XYDotRenderer Dot Size    jfree.org

For some reason I am completely missing how to change the size of the dots on my plot using an XYDotRenderer. I was thinking it would be this: renderer.setStroke(new BasicStroke(5.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND)); But that seems to have no effect on the size of the dots. Sorry for the dumb question! Thanks, Ryan C