Format « Development « JFreeChart Q&A





1. Format number in StandardCategoryItemLabelGenerator    jfree.org

Hi: I know that the Contructor for StandardCategoryItemLabelGenerator is: public StandardCategoryItemLabelGenerator( java.lang.String labelFormat, java.text.NumberFormat formatter) I am displaying a number on top of each bar chart, and the format that I wanted is something like "$6,000.50", ( Currency, thousands separator, 2 decimals to show cents ). Can you please give me an example of the proper way of using the contructor ...

2. Is it possible to format the numbers within a legend?    jfree.org

Dear Daniel, Thanks for the quick reply. But I don't want to format the names but the value within a legend of a pie chart. Within the legend of the pie chart the values are represented as well. Now when we us a Double with value 21.1234 that will be represented as 21.123. This means that the legend is formatting already. ...

3. Memory leak when creating a chart in PNG format    jfree.org

We are using JFreeChart inside a Servlet on a Weblogic 8.1 with JDK 1.4.2_05. We noticed that the allocated memory of the Weblogic Server process is constantly growing on the Solaris machine. I was able to track the problem down to the methode public static void writeChartAsPNG(...) inside the class ChartUtilities. After this I was able to write a reproducer with ...

4. Issue with Numeric Format for JfreeChart Ver 0.9.4    jfree.org

We are facing issue with JfreeChart where we want to change the Numeric Format based on Language Selected by user. Also if that is not possible is there is any way by which JFreeChart will consider regional setting based on locale set ?? Any solution to these would be highly appreciated It's quite urgent issue. Soni

5. Format Integer numbers with a "." as thousands sep    jfree.org

public StandardXYLabelGenerator(java.lang.String formatString, java.text.NumberFormat xFormat, ...

6. Formatting Questions    jfree.org

7. Duration format    jfree.org

Does JFreeChart support a "duration" format for chart and graph values displayed? IE: A duration of 411332 seconds would display as 4 18:15:32 4 days, 18 hours, 15 minutes, 32 seconds. I want to be able to change the labels attached to each component of a pie chart, for example. Is there a way for me to accomplish this task without ...

8. Formatting milliseconds into months, days, hours, secs etc    jfree.org

Formatting milliseconds into months, days, hours, secs etc by bob.marksie Mon Nov 27, 2006 4:35 pm I have a simple stacked bar chart created using the following: - Code: Select all import java.awt.Color; import javax.swing.JPanel; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.plot.PlotOrientation; import org.jfree.data.category.DefaultCategoryDataset; import org.jfree.ui.ApplicationFrame; public class DowntimeReportTest extends ApplicationFrame { /** Constructor */ ...

9. number-field format question    jfree.org





10. Custmizing Legends in table format    jfree.org

There's no code in JFreeChart that is going to do this for you. You really have two alternatives: (1) Write a custom legend class; (2) Use the LegendTitle class with custom Arrangement instances (passed in via the constructor). The intention is that you can control the layout of the items in the legend...in practice, though, this facility is not well tested ...

11. Format number tick units    jfree.org

13. problem with values format    jfree.org

14. Formatting    jfree.org

Hello, I have found that it is possible to format axis to whole numbers, but on a dual axis chart I want to know if it is possible to format the left axis to decimals to two decimal places and the right axis to integers. If so, how would I do this?

15. Export to a vector format    jfree.org

by mhilpert Wed Feb 13, 2008 1:31 pm Code: Select all /** * Save chart as SVG file. * Required libs: Apache Batik (batik-svggen.jar, batik-dom.jar, dom.jar). * * @param chart JFreeChart to save. ...

16. NNUmberAxis format    jfree.org





17. Multi-line datetime format doesn't work    jfree.org

I guess this is just the way that Graphics2D.drawString() handles new lines (by ignoring them). But if it didn't, the the chart layout code would have to be horribly complex to deal with tick labels that had arbitrary line counts/breaks...so I'm kind of glad it works that way. Note that the PeriodAxis class has the option to display dates in more ...

18. formatting the legend    jfree.org

formatting the legend by bigdweeb Wed Nov 12, 2008 5:14 pm Hi, I've been playing around with JFreeChart for a few weeks now. I've figured out how to do most of what I need at this point. One thing I can't figure out how to do is format the legend. When I generate a graph, I get a legend containing ...

19. Log axes with engineering format    jfree.org

Dear all, I am working on a students project using an XY plot with two log axes. The range axis has to cover a very big range, from 0 to 10 000 000 (frequency). Is there any way to display them in an engineering format like 1e6 or even 1M? Is there a possibility to customize this axis labeling? thanks, Markus ...

20. The format of the X of Jfreechart(2009-10-2711:00)    jfree.org

hi all : these dataset prepared for my chart, but why when the data format presented by the X plot of data chart is shown as diagram to only have and cent, but I hope to present to have date and time(for example:2009-10-2711:00, 2009-10-2712:00, 2009-10-2713:00), please tell me how to modify it ? Code: Select all private static IntervalXYDataset createData() { ...

22. Title formatting    jfree.org

Hi, I am creating a TimeSeriesChart and I want to add a 3 line Title, i.e. Animals Dogs German Shepard also i would like to set the appropriate size and font for the title, i.e. Verdana 10, I have done this for the labels by using htAxis.setLabelFont(myFont); but i haven't found any way to do this to the title, Is this ...