Image 1 « Image « JFreeChart Q&A





1. JFreeChart & Image    stackoverflow.com

Is it possible to cast an image/BufferedImage to JFreeChart?

2. Image histogram generated by JFreeChart    stackoverflow.com

I want to display histogram of image color channels. At first my reading of pixels looks like:

   for(int i=0; i<width; i++)
        for(int ...

3. Can't find JFreeChart Image    jfree.org

Hi I have a JFreeChart embedded in my report. I used iReport to write the XML and have included a snippet from the XML file below. I am running the report from a web servlet (on Tomcat) and my problem is I don't know where the chart image that is created is being "stored" so that I can set the JRHtmlExporter. ...

4. image quality    jfree.org

? by Guest Mon Sep 26, 2005 6:18 pm Hi Tzaphkiel I was looking at the post you refer to. Which files do you actually add this to? How do I get the _chart from the image. My code so far looks like this: Code: Select all CategoryAxis categoryAxis = new ...

5. Deleting temporary images    jfree.org

How would I go about deleting the images jfreechart creates in tomcat's temp directory? I assumed they'd be cleaned out by Tomcat, but this is not the case. I saw some mentions to a ChartDeleter class, but I am unsure how to use it, or if it's suppose to be used to do this. Thanks.

7. add images    jfree.org

9. Display complete image    jfree.org

Hi all, I have managed to get the graph to display for a couple of data points. Now i am trying to create a 3D Bar graph that will display about 300-400 different items. I get an image but i believe that this image is so big that it can be view. Is there some way of placing a scroll bar ...





10. Is there a max width for an image?    jfree.org

Hi, I need to create a chart that shows tones and the length of time each tone occurred (in milliseconds). The user has the option of sampling data from 1 - 10 minutes, so if the user selects a sampling time of 1 minute, the X axis should be from 0 to 60,000 (because it's in milliseconds). I want the tick ...

11. Floating Bar/Gantt with multiple images / icons on top    jfree.org

I would like to create a chart where each row is represented by a horizontal bar. And on the bar there are some decorations (Icons/Letters/Shapes). The tooltips and generated Image Map need to present information for both the background bar and the individual decorations. Below is a mock-up of the chart. It has as input a time period (range/interval) and a ...

12. Image like logo    jfree.org

13. Use an image instead of a shape on an XYLine    jfree.org

Hi, Does anyone know if on an XYLine i can create and something like an XYLineAndShapeRenderer but one that displays an image rather than a shape. So for example in the demo's XY Charts - XYLineAndShapeRendererDemo1 where there is a one series with lines and one with shapes but not lines, i'd want to replace the shapes with an image. Is ...

14. How can I save 300 dpi chart image using saveChartAsPNG().    jfree.org

hi I want to save my chart image as png with 300 dpi. It seems that default png images generated in JFreeChart is about 72 dpi, how can I save 300 dpi chart image using saveChartAsPNG(). I have read PNG-Encoder Performance, and get "public byte [] encodeAsPNG(JFreeChart _chart, double width, double height, float resolution)", but I do not know how to ...

16. Image storing in database.    jfree.org





17. image in corner    jfree.org

Hi, I have xy line chart, title and subtitle above chart (center) and I want add image (it can be ImageTitle) next the title and subtitle to the left or right corner. It is possible? Or I have to override paint(Graphics) method and paint it manually. Is there some way, how find out height of space above chart?

18. unable to diplsy images from the Linux server    jfree.org

I have an application that uses jfree charts to generate reports, but I am unable to display those images on to the client machines, even after setting the diplay variable java.lang.InternalError: Can't connect to X11 window server using '172.25.243.142:0.0' as the value of the DISPLAY variable. sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:134) java.lang.Class.forName0(Native Method) java.lang.Class.forName(Class.java:141) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62) java.awt.Font.initializeFont(Font.java:308) java.awt.Font.(Font.java:344) org.jfree.chart.plot.PiePlot.(PiePlot.java:191) org.jfree.chart.ChartFactory.createPieChart3D(ChartFactory.java:418) com.infosys.dqm.screens.util.PieChart.createChart(PieChart.java:62) com.infosys.dqm.screens.util.PieChart.(PieChart.java:30) com.infosys.dqm.screens.reports.ReportActionServlet.execute(ReportActionServlet.java:335) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:480) ...

19. Broken images    jfree.org

Hi All, I know this issue has been covered on several occassions and i have implemented some of the suggestions to no avail. I am getting a broken image. I have it working on my windows machine fine, but when I moved the code to a Solaris 2.6 box i get the broken image. Here is some of my code: Folder ...

20. Chart image is distorted when drawn with big sizes.    jfree.org

NEED HELP BADLY Hi am using Jfreechart-1.0.0-rcl am able to generarte all charts with no problems however my application needs to render bigger charts to make labels and axis being displayed more readable. If I make my charts bigger than 300*200 the chart comes out distorted. I've tried using the setAntiAlias() method as suggested in the chart but with no help. ...

21. Help. Chart image in web app is distorted    jfree.org

In my web application if the image is bigger than 300 * 200 the image looks distorted. Seems as if that size is set to be the default size for all charts. How do i change this for a web app. I tried using chartPanel but thats only for swing. Need help Badly.

22. Where images get stored?    jfree.org

23. Multiple charts in single image    jfree.org

Hey I worked out tool tip generation. Its coming fine But i searched in the forum but cudn't find any sample code to place some 4 charts as a single image Can anyone help me, Is there any facilty to do like that in JFreeChart. Or do I have to look for some other option

24. Embedding comments in image created in JFreeChart...    jfree.org

All, Figured out how to do comments in the JPEG. I really like JFreeChart, it is working very well in my WebObjects application, and for those of you who have not bought the manual, do so. It is a great resource, and a nice way to thank the developers of JFreeChart for their efforts. Still would like to see ChartUtilites.writeChartAsJPEG() modified ...

25. PLS HELP,About the image for JFreeChart , Urgent!!!    jfree.org

hi all, I have taken many testing to find a way about it,but I still have no any real idea about it. this is the condition ,there are two jsp and a action , one jsp send a request to a action, the action receive it and to get data and to produce a JFreeChart object and a image map, then ...

26. How to show two images in one page    jfree.org

The same as for one image! In your case it is important to understand how the browser gets all the images. 1) The browser requests an html page 2) The browser parses the page for img-tags 3) For every img-tag the browser requests the image from the source. Images are not included in the html page! 4) Browser displays the page ...

27. Flash (SWF) Image output    jfree.org

28. Need help in inserting images..    jfree.org

Hi ! i want to insert images in form of icon for category in place of their name. also i want to know how backgroud images is set insted default image in background. I use ImageIcon for iamges load but it not work for function use to set background in chart because Image type is required, but problem is Image is ...

29. Area with a Image!    jfree.org

30. Can I save chart as images (jpeg etc)?    jfree.org

Hi, in my project I have more chart . Chart I image in JFrame. Can I save this chart to any images format?(gif or jpeg etc ) ? Yes, I can press print screen on my keyboard an paste to images program and save, but it is no goot idea. Thank you for your help me.

34. Reduce the size of an image    jfree.org

Hi, I am using jfreechart to create a simple PNG file of a chart. To create the file I have used methods like ChartUtilities.saveChartAsPNG and PngEncoder. The issue is that the size of the PNG file is 9KB. I want to reduce this size while still making sure that the quality of the image is acceptable. Currently a C utlitiy (i ...

35. To keep an image in the Server    jfree.org

........ response.setContentType("image/jpeg"); OutputStream myOutStream = response.getOutputStream(); JFreeChart myChart = crearChart(); int ancho = getParamEntero(request,"ancho",400); int alto = getParamEntero(request,"alto",300); ChartUtilities.writeChartAsJPEG(myOutStream,myChart,ancho,alto); ChartUtilities.saveChartAsJPEG(new File("/usr/local/tomcat/webapps/Usuarios/graph1.jpg"), myChart, ancho, alto); myOutStream.close(); ..... ...

36. Several Charts in the same Image.    jfree.org

Here is a high level overview: create your own BufferedImage, get the Graphics2D for the image, then call the draw() method in your JFreeChart instance passing in the rectangle (some subarea of the image) where you want to draw the chart. Repeat for different subareas of the image for each chart you want to include in the image. Finally, use ImageIO ...

37. image don't display!    jfree.org

39. 3D image - cannot open with another tool    jfree.org

Hello, I am using JFReechart 1.0.0. I am rendering 3D Bar/Pie charts in PNG format. Unfortunately, I am unable to access the public-xxxxx.png files from any other tool (like Picture Manager). Non-3D images seem to open up just fine. What I would really like to do is embed the 3D PNG images in an HTML mail - but they appear to ...

40. writeChartAsJPEG returns empty image    jfree.org

Hi, I am trying to display a chart using a JSP, but the browser does not return the image (i get the small red cross instead). The code used is the following: <%@ page contentType="image/jpeg"%> <%@ page import="org.jfree.chart.ChartUtilities" %> <%@ page import="sanco.idbpa.utils.ChartUtils" %> <%@ page import="org.jfree.chart.JFreeChart" %> <% ChartUtils chart = new ChartUtils(); JFreeChart myChart = chart.getChart(); ChartUtilities.writeChartAsJPEG(response.getOutputStream(), myChart, 500, 300); ...

41. Image truncated    jfree.org

42. saving cewolf image    jfree.org

Hi, i have a problem with saving an image generated by cewolf! my certain question is, is it possible to generate an image by using the cewolf "styles", but without using it inside an jsp? the reason is, that i need the image to be safed, but i just cant call e.g. a PostProcessor without an jsp?! Please help.

43. Problem: - Multiple user accessing the same image file    jfree.org

Hi, I am using JFree chart in our web application. The approach is simple: 1. Jsp collects the data and invokes a java class. 2. Java class then using the data builds a chart and creates an image file. 3. Then jsp shows that image file using "img" tag. I am always giving a same name to the image file. So ...

44. zoom for svg image    jfree.org

I am generatring svg images using my solaris server and view them through IE. the tooltips and imagemap are ok... but I would like to retaining the zooming function since I have 10,000 points in my scatter plot and some points are too close to each other even if I use the smallest size. I do not want to use applet... ...

46. outputstream image not updating    jfree.org

I have created a servlet to write my charts out to the outputstream. I have copied the model in the demo, where I save my chart as a session attribute and write it out using ChartUtilities.writeChartAsPNG. When I have a simple chart with just one series in the TimeSeriesCollection my image updates when I change from 1 chart to another. However ...

48. image not loading    jfree.org

49. JfreeChart Images    jfree.org

This may be a very trivial question but here it goes... Can i have two charts produced in a single image? So far, I see that for charting .... it is 1 chart is to 1 image. If two charts can be saved in a single png file.. I was wondering if there's a code snippet available. Thanks :-)

50. Chart image annotations OK for HTML, but fail for PDF    jfree.org

Hi, I have been building bunches of HTML charts for my app and now want to include the charts in a dynamically constructed PDF document. I created my JFreeChart objects and I am happy with my HTML charts, but when I try to write the same JFreeChart to a PDF document using the approach outlined in the developer guide, all of ...

51. Chart Image    jfree.org

52. Customized Image Annotations    jfree.org

53. Images not generated in FireFox    jfree.org

I'm having an issue in my testing environment. I generate graphs from IE and they all work. I try them from Firefox..and none of them work. All i get is the binary output(or whatever all those characters are). I tried with all types of charts..but nothing works in FF. I also tried both of these lines : - ChartUtilities.writeChartAsPNG(response.getOutputStream(), chartPie3D, width, ...

54. chart image and other image synchronization    jfree.org

Hello, I create combined time chart (multiple charts, vertical aligned, using TimeTableDataset) and I have another component (calendar) above this chart image (in HTML page). I have buttons in calendar for seeking in time above the chart. When i click button, new chart image is generated and calendar is shifted to next day (for example). Problem:) 1. I would like to ...

55. Creation of image of a chart in an applet.    jfree.org

Hi all, I am relatively new to jFreeChart and i need to develop an applet. An image of a chart has to be developed in the applet, and later be displayed in a GUI. Can someone tell me how to do this? I am currently using saveChartAsPNG to create the image, but am unable to set the image in the gui. ...

57. Creating 1 image per chart    jfree.org

59. To save an image in .ps(postscript) format in swt    jfree.org

To save an image in .ps(postscript) format in swt by raghavan_26 Wed Jul 25, 2007 10:16 am I was trying to save an image in postscript format ... I was able to get it . This is how I have implemented and it is working Code: Select all FileDialog fileDialog = new FileDialog(chartComposite.getCanvas().getShell(), SWT.IMAGE_PNG); ...

60. Insertion of a clickable image ... ???    jfree.org

I've never used JFreeChart before, it looks quite interesting and useful. I was using another plotting library and I decided to switch because it didn't meet my needs. I would like to know if it is possible to insert a clickable image with JFreeChart, from a PNG, JPG or GIF file, into the plot, relative to the graph's coordinate system. My ...

61. empty image instead of chart    jfree.org

ChartViewer fr.silogic.efis.util.ChartViewer ChartViewer /servlet/ChartViewer

62. The image is not getting updated    jfree.org

Hi I'm saving the chart obtained in the form of a Jpeg file. But when i tried to load the image into JSP, im only able to load the old image not the one that was modified recently by my application . But again if i close the browser and open it then im able to view the updated data which ...

63. EMF, CGM, WMF Image Export    jfree.org

64. time-of-life for images (Fins)    jfree.org

Hi all! I've got the following configuration: Apache Cocoon + Fins + JFreeChart 0.9.20. There is an application that runs long-running queries and draws reports with a number of different graphs. When report is generated, each of the graphs has its own unique url (like /chart-images/b1484aa762903eb0.png). The problem is that after a while since report has been generated this url points ...

65. How to superimpose a gif or jpeg image file    jfree.org

Hi, I am developing an internet based service. I need to DYNAMICALLY pinpoint a position with a square and text(Hospital for example) in a gif or jpeg image file. In java, I could read jpg or gif file into image buffer. Then get graphics, then draw on it. How JFreechart handle that and display it to web browser.

66. How to save image charts with a cron    jfree.org

Assuming your web-server is up and running, the easiest way would be to write a small shell-script that uses wget to grab the image (or to trigger the JSP page). However, I would not have used a JSP page in the first place. After all, you dont want HTML, you want binary data. So a servlet that streams the image-data directly ...

68. Problem with values on image...    jfree.org

Hi when i call my servlet the chart gets created but the value says only jan it is supposed to give jan=43.2 according to my dataset Can you please let me know what could be wrong ..... Below is my code.... ************************************ DefaultPieDataset data = new DefaultPieDataset(); data.setValue("Jan", new Double(43.2)); data.setValue("Feb", new Double(14.0)); data.setValue("March", new Double(17.5)); JFreeChart chart4=ChartFactory.createPieChart("Sales Data", // chart ...

69. Zoomable image    jfree.org

70. Is an image like this possible?    jfree.org

Is an image like this possible? by jduffy Thu Mar 20, 2008 11:05 pm I've been through the the samples and api for a couple of days and I have not yet figured out if I can make a chart like this. As you can see in the image I mspainted, I would like to display something like a stacked ...

71. Deleting Created JFree chart Images    jfree.org

I am trying to incorporating JfreeChart Image mapping technique, in that for each and every chart it is creating a Image. Now i am trying to delete all the images created in that particular session. Is there any option like this already there in Jfreechart. Or can give some sample code to refer. Can anybody help me out in this. Thanks ...

72. Creating Multiple SVG Images For PDF    jfree.org

Creating Multiple SVG Images For PDF by Reggie3 Tue Apr 01, 2008 3:02 pm I am trying to export several charts to SVG files so that I can add them to individual pages in a PDF. I use to following code to create the temporary SVG image file that I later import into the PDF. Code: Select all public static ...

73. Can't generate image on web page    jfree.org

This seems like it should be easy but I can't get a image to appear on a web page. The code that's sending the image is: resp.setContentType( "image/jpeg"); OutputStream out = resp.getOutputStream(); BufferedOutputStream bos = new BufferedOutputStream( out); BufferedImage bufferedImage = mChart.createBufferedImage(width, height, null); byte[] bytes = org.jfree.chart.encoders.EncoderUtil.encode(bufferedImage, org.jfree.chart.encoders.ImageFormat.JPEG, 1, true); bos.write(bytes, 0, bytes.length); bos.flush(); bos.close(); Just for a sanity check ...

74. problem: Image doesnt display    jfree.org

problem: Image doesnt display by abu_gurnah Thu Apr 17, 2008 12:35 pm Hi there! I created a servlet which create an image which successfull saved in the /tmp folder, but when i tried to retrieve it, i couldnt do it. what will be the mistake im doing. this is my code: go it from jfreechart web sample Code: Select all ...

76. how to refresh image.    jfree.org

Hello, I am creating pie chart using jfreechart. Its to easy to create pie chart using jfreechart API. I am creating pie chart using servlets.... image is going to display when i logged first time. But sometimes image is not get displayed when i get login. Its not refreshing.its showing blank screen. I am creating that image and then physically storing ...

77. create thumbnail images    jfree.org

i need to create 6 months of price chart with thumbnails. here is what i do -- draw price chart (just took one of the demo example) then save chart as png to get image. how so i scale down this image. I only need 50X50 or 100 X100, but when i give height and width , JfreeChart only draws partial ...

78. sending chart image in gif format    jfree.org

79. Improving Image quality    jfree.org

Hi, We are able to successfully generate the charts but we are facing problem giving good quality image output.Currently we are using PNG type. Can changing image type will help. We want to improve the sharpness of labels as currently they are blur. Also I am displaying labels in X axis at certain angle and this is making them worst. IS ...

80. zom image    jfree.org

I am using JFreeChart in a web environment, so I have a web page with a .png image that is my chart.. I really would like to let the user click on it with his mouse and zoom on the image, just like it is possible with ChartPanel (that I cannot use), Is there anything to do it? Any Suggestion would ...

81. Bugs? - Saving chart as an image    jfree.org

83. i can't send url and image .when?    jfree.org

84. how to find size of chart image    jfree.org

86. Images as category descriptions possible?    jfree.org

Hello, is it in any way possible to use images as category descriptions? I want to display flags instead of country names (if possible first the flag and then the name) for categories. Is there a faster (or better) way instead of extending the CategoryAxis as well as the CategoryDataset? Could you give me any hints as to where I should ...

87. How to get chart image    jfree.org

public ImageIcon getChartImage(int width, int height) { JFreeChart tempJFC = new JFreeChart(aJfc.getPlot()); tempJFC.removeLegend(); tempJFC.getXYPlot().getDomainAxis().setVisible(false); tempJFC.getXYPlot().getRangeAxis().setVisible(false); tempJFC.getPlot().setInsets(RectangleInsets.ZERO_INSETS); ...

88. Saving to image: need to calculate correct height    jfree.org

Hi All, I save different charts to images with different legend height. Actually I need plot area to be 800x600, and I don't care about legend size. But writeChartAsPNG() needs exact width/height before call and I need to calculate it somehow. Now I calculate image height as 600 + ( x * pixHeight ) , where * x is number of ...

90. chart image of fixed size    jfree.org

Hi, I'm able to generate the chart with fixed size by specifying size in ChartUtilities.saveChartAsPNG(). When number of series is more, the legend below the image takes more space, leaving less space for chart image... is there any way to specify the standard size for chart image alone, there by adjusting the overall size of the image. Regards ArunDhaJ

91. return image instead of chart...    jfree.org

return image instead of chart... by sharagi Tue Apr 07, 2009 9:42 am My code is like this how I can I modify it to return an image instead of chart window.... Code: Select all import java.awt.Font; import java.io.*; import java.io.BufferedReader; import java.io.DataInputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.text.*; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import ...

92. Best method to show chart as image in Applet    jfree.org

Hello All, I have worked my way thru the Servlet and Applet demos. I can show a chart in my applet if the chart is rendered as an image and stored in the servlets folder. In the ServletDemo1 code, the servlet sets the content type to image and directly returns a rendered png file. My Applet creates an Image class, I'm ...

93. IE: untitled.bmp and cannot drag images into applications    jfree.org

Hello, I work for a national registration for heart operations. We have the problem that our dynamically generated JFreeCharts PNG images are not recognized in many cases by IE. It's not possible to drag them from IE into other applications like Word and when you try to save them with right-click it lists them as untitled.bmp. I already figured out that ...

95. New image defaults for 1.0.13    jfree.org

96. how to remove gradient Line From Jfree generated Image    jfree.org

its Not working. This is My code . i am using latest Jar which are available on internate. public static boolean drawChart(String imagePath, List liBenchReportItem) { boolean flag = true; DefaultCategoryDataset dataSet = prepareImageData(liBenchReportItem); JFreeChart chart = ChartFactory.createStackedBarChart( "NCE OBU People Report Bench View", "Service Line", "Number of Employees", dataSet, PlotOrientation.VERTICAL, true, true, false); chart.setBackgroundPaint(new Color(255, 255, 255)); chart.setBorderPaint(new Color(0,0,0)); CategoryPlot ...

97. extract image of LegendItem    jfree.org

98. New JChart user question image messed up.    jfree.org

New JChart user question image messed up. by foosratt Wed Jul 29, 2009 3:43 pm So I am creating a bar chart and a pie chart. Nothing fancy I just wanted to show a snapshot of some basic data. These charts are being created, put into a new ChartPanel and then added into a JtabbedPane. My issue is that the ...

99. ImageTitle, Image with fixed size    jfree.org

Hello, I would like to add an Image in the title of my chart. I try do to it with ImageTitle: the problem I have, is that the image is adapting it's size, when the window containing my chart is resized. Then, my image is resized, and the quality becomes very bad. I have tryed with specifing the size in the ...