font « Component « JFreeChart Q&A





1. How to change the Title font of JFREECHART    seamframework.org

2. Font    jfree.org

3. Changing Fonts    jfree.org

First of all I want to thank tehe developers for this great tool. Now, while creating some charts I am having problems with setting and scaling of fonts. I have created a BarChart3D and tried to chage the fonts of the itam labels because they are to long. But it seems that the font is not changed. Here is my code: ...

4. Font problem    jfree.org

Hi After i readed your post I made an image - its ok, problem is only with pdf-s. I use Itext. Those are methods i use: Code: Select all private void buildPdfContentByte( PdfDocumentWrapper pdfDocumentWrapper, JFreeChart chart ) { PdfWriter pdfWriter = pdfDocumentWrapper.getPdfWriter(); ...

5. changing font    jfree.org

6. Font style : can JFreeChart display underlined font ?    jfree.org

Hello, I need to underline the title of my charts, so I tried the following code : Map m = new HashMap(); m.put(TextAttribute.SIZE, new Float(30)); m.put(TextAttribute.UNDERLINE, TextAttribute.UNDERLINE_ON); Font font = new Font(m); myGraph.setTitleFont(font); but it doesn't seem to work. The font has the right size, but is not underlined... is there a solution for this ? Thanks

7. Unable to change Category item's font.    jfree.org

Unable to change Category item's font. by Guiding5 Thu Feb 16, 2006 4:31 pm I am trying to change font for entire chart, but failing to do it with Category label, whats wrong in my code ? Is it any way to change default font for entire chart ? Code: Select all chart = ChartFactory.createBarChart3D( ...

8. Edit the Font?    jfree.org

Code: Select all java.lang.ClassCastException at org.jfree.chart.JFreeChart.getXYPlot(JFreeChart.java:738) at jelection.Application.IoOperations.exportPdf(IoOperations.java:542) at jelection.Gui.MainWindow.jLabel8MouseClicked(MainWindow.java:188) at jelection.Gui.MainWindow.access$800(MainWindow.java:15) at jelection.Gui.MainWindow$9.mouseClicked(MainWindow.java:113) ...





10. Setting JFreeChart fonts    jfree.org

I bought the JFreeChart dev guide and searched for a long while on these forums to find out if there is a way to set the "default" font on a JFreeChart instance, but I can't seem to find a clean way. There doesn't seem to be a list of UI defaults for the UIManager and using ChartPanel.setFont() doesn't work. It seems ...

12. How to change the Heading font    jfree.org

13. Problems with JFreeChart / Fonts on windows server    jfree.org

Problems with JFreeChart / Fonts on windows server by winkler Thu Nov 23, 2006 6:14 pm Hi there, sorry if this question has been asked before but I am having a problem here. I have written a JFreeChart web application which gets data from a DB and displays it in a JSP. I am using the DisplayChart servlet coming with ...

14. Fonts not scaled for small charts    jfree.org

I was going to suggest the ChartUtilities.writeScaledChartAsPNG() method...but for some strange reason, the scale factors are declared as int values, so it can't scale down (only up, and in multiples of the chart size) which doesn't seem very clever. Anyway, if you look at the code for that method, you can easily modify it to scale for arbitrary scale factors...and I'll ...





17. Font Mapping with iText problem    jfree.org

Font Mapping with iText problem by harrisx Fri Jul 06, 2007 6:17 pm Hi, I'm trying to create charts with a custom font given as ttf-file and then put them in an itext pdf-document using a DefaultFontMapper. The code looks like this: Code: Select all imports .... public class ITextFontTest { public static void main(String[] args) { ...

18. Better looking fonts???    jfree.org

Hi I am using JFreeChart to produce several small charts for my application (width="250" height="130"). At this size the text in my charts gets resized to a ratio that does not look very good. I was wondering if there was away I could turn off this font scaling? Is there anyway that I can get control over the way that text ...

20. How to change Font of Text    jfree.org

Hi, I am creating multiple pie chart and i want to change the font of values which is shows in color . For eg. 10 values are in pie chart with 10 different color and the name associated with color is mentioned after chart. I have to change the font of that color value. Thanks in advance, Vivek Kumar [/img][/url]

23. Japanese Font appears garbled on IBM AIX    jfree.org

HI, We are using jar version jfreechart-1.0.0-rc1.jar on IBM AIX . But the font is appearing garbled in japanese session . Pls let us know how to solve the issue. Is this a font issue on AIX , because its working fine on windows setup . We are using the method createTimeSeriesChart to generate chart.

24. Changing default fonts    jfree.org

25. Problem in assigning Fonts (jFreechart 1.0.6)    jfree.org

chart = ChartFactory.createStackedBarChart("", "", LABEL_Y_AXIS, adapter, PlotOrientation.VERTICAL, showLegend, false, false); chart.getLegend().setPosition(RectangleEdge.RIGHT); chart.getLegend().setMargin(20d, 20d, 20d, 20d); Font font = new Font("Arial",0,22); ...

26. Using a common font across jfreechart    jfree.org

1) I want to use a common font across jfreechart. I don't want to keep on setXYZFont everywhere. Is there any way to do it? 2) One nice to have will be to search for a few fonts and use the first one. Like we do in css. Is this possible? Thanks.

27. Fonts changed from 1.0.10 to 1.0.11    jfree.org

Here is a picture of my chart rendered in a ChartPanel using JFreeChart 1.0.10 on the left, and 1.0.11 on the right. The two charts were drawn using exactly the same code, only with different JFreeChart jar files. All of the 1.0.11 fonts (right) are smaller than they were using 1.0.10 (left). For example, in the upper-left corner of the chart, ...

29. Title font not changing on Ubuntu    jfree.org

I'm using JFreeChart in a servlet to generate charts. The servlet is running in Tomcat 6.0.18 on Ubuntu hardy heron. Charts are being generated, but I can't change the fonts, I've tried using a theme and setting the font on the TextTitle object, but the font displayed is always a Courier lookalike. Running chart generation on my Mac I get different ...

30. StandardChartTheme and small font    jfree.org

31. MultiplePieChart Font    jfree.org

33. Change the font family for entire JFreeChart    jfree.org

Due to Chinese character display problem in JFreeChart as described here http://www.jfree.org/phpBB2/viewtopic.php?f=3&t=27887&p=82686&hilit=chinese#p82686, we need to change the fonts for entire chart, when we are in Chinese locale. I wrote an utilities method to do so. Code: Select all /** * The default font used by JFreeChart is Tahoma. However, Tahoma doesn't ...

34. Change font on block chart    jfree.org

TextTitle title = chart.getTitle(); title.setFont(new Font("Arial", Font.ITALIC, 16)); title.setPaint(Color.RED); chart.setTitle(title);

35. barcode font    jfree.org

Did I fail to raise the question properly? The problem I have is that we want to have this barcode on the receipt for the customer. However, if the customer doesn't have the barcode font installed on his/her computer, the receipt won't print out correctly. So, I'm wondering if I could make a picture (png file) of the barcode with jfreechart ...