After hours of fiddling with various parameters I am finally getting the chart to display the way I want but no matter what I try I cannot position it. If you compile and jffeechart this program, you can see that the generated PDF has an image that exhibits the stair-case effect. I have done x axis part in that jfreecbart used thread and timeseries now i want to connect with database on y axis………… plzzzzzzzz help Thank u: Double 0, 0, width,height ; contentByte. When you run this code example, you will get a nice bar chart inside your PDF document.
|Country:||United Arab Emirates|
|Published (Last):||20 November 2005|
|PDF File Size:||20.63 Mb|
|ePub File Size:||20.78 Mb|
|Price:||Free* [*Free Regsitration Required]|
Ramesh November 23, at 4: From that moment on, you can position the PdfTemplate on a page. Double 0, 0, width, height ; getPieChart. Since I could not figure out which was correct and there was no documentation to help me resolve that, I gave up and found the method I was using. But I assume that is an itextpdf issue not a jfreechart issue.
Please take a look at the DirectorCharts example on the official iText web site. Hey, helped a lot, thx! Your suggestion got rid of all errors for some reason. Can you please help me out here?
If you compile and execute this program, you can see that the generated PDF has an image that exhibits the stair-case effect. Follow Us On Facebook. When I save the PDF to filesystem, the file saves correctly, then when opened, shows chart without any problems.
As you can see, you always have to create a PdfTemplate object aka Form XObject with a specific dimension and draw the chart onto that PdfTemplate. Very Very Thanks for Providing This tutorial. Float 0, 0, width, height ; g2d. After hours of fiddling with various parameters I am finally getting the chart to display the way I want but no matter what I try I cannot too it.
I have a timeseries chart, that has been generated from real time sampled data displayed on the tl from my app, which I now want to add to a PDF report. If you want to jfreechqrt the same barchart more than once, it goes without saying that you can either repeat the addTemplate method with the same template and different coordinates more than once. In real example these values must be dynamically fetched from database or other data source. Double 00width,height ; chart.
Anonymous May 22, at Leave a Reply Cancel reply Enter your comment here Here is the meat of the code required: What do you think could be the reason Sripradha. Can you please tell me how can I fix this issue? Download the jFreeChart jars from: Related Posts
Subscribe to RSS
ADD JFREECHART TO ITEXT PDF