I dont use that chart but i guess it works somehow like that:
//x-Axis
Font xFont = new Font("SansSerif", 8,Font.PLAIN);
CategoryPlot plot = chart.getCategoryPlot();
CategoryAxis domainAxis = plot.getDomainAxis();
domainAxis.setTickLabelFont(xFont);
Search found 6 matches
- Tue May 25, 2004 2:01 pm
- Forum: JFreeChart
- Topic: font in axis tick lables..very urgent
- Replies: 1
- Views: 2115
- Tue May 25, 2004 1:58 pm
- Forum: JFreeChart
- Topic: Creating image without saving it
- Replies: 4
- Views: 6690
Creating image without saving it
Hi,
i want to create an image out of a chart without saving it directly. My intention is to add it as an image to a pdf-file. I dont want to write it directly to a pdf because i want to handle the "positioning" somewhere else in the code.
Regards
Tobias
i want to create an image out of a chart without saving it directly. My intention is to add it as an image to a pdf-file. I dont want to write it directly to a pdf because i want to handle the "positioning" somewhere else in the code.
Regards
Tobias
- Thu May 06, 2004 8:51 am
- Forum: JFreeChart
- Topic: how to deal with 100+ bars in Horizontal Stacked Bar Chart?
- Replies: 1
- Views: 2479
I´ve got the same problem - i need to display around 50 bars. The only thing that worked for me is to use vertical labels and smaller font type. I would prefer a solution that allows to define wich labels are shown but i guess there is nothing like that - am i wrong? CategoryAxis domainAxis = plot.g...
- Thu May 06, 2004 8:42 am
- Forum: JFreeChart
- Topic: Label Alignement Problem with JDK 1.3.1 and earlier
- Replies: 5
- Views: 6913
- Tue May 04, 2004 1:53 pm
- Forum: JFreeChart
- Topic: Label Alignement Problem with JDK 1.3.1 and earlier
- Replies: 5
- Views: 6913
Label Alignement Problem with JDK 1.3.1 and earlier
All horizontal Labels (Title, Tickvalues and Categorylabel) are by far too high if i use a jdk version earlier than 1.4. I know this doesnt happen if i use jdk 1.4.2 but is there a way to change the marging/ position of these labels - if so please show me how.
- Sun May 02, 2004 2:27 pm
- Forum: JFreeChart
- Topic: hide/disable x axis tick labels?
- Replies: 4
- Views: 6180