Search found 4 matches

by schlikkes
Tue Sep 25, 2007 10:12 am
Forum: JFreeChart
Topic: Alignment of legend text
Replies: 4
Views: 7932

I made a workaround. Not nice but works. I use a monospace font (e.g. Courier New) for the legend text and make every line of the key as long as the longest line of the key. Therefore I divide the key into several parts for every single line and fill every line with spaces. At the end I paste the pa...
by schlikkes
Tue Sep 25, 2007 10:08 am
Forum: JFreeChart
Topic: sorting does not work properly
Replies: 2
Views: 2462

DefaultPieDataset pieDataset = new DefaultPieDataset(); ClientFonddepot fonddepot; for(int i = 0; i < fonds.length; i++){ fonddepot = (ClientFonddepot) fonds[i]; pieDataset.setValue(fonddepot.getFonds(), fonddepot.getWert().getAmount()); } [...] JFreeChart chart = ChartFactory.createPieChart("", pi...
by schlikkes
Mon Sep 24, 2007 10:06 am
Forum: JFreeChart
Topic: sorting does not work properly
Replies: 2
Views: 2462

sorting does not work properly

If I try to sort my DefaultPieDataset, the colours in the legend do not match to the colours in the chart. Anybody expierienced the same problem? Unsorted, the colours in legend and chart match.
by schlikkes
Mon Sep 17, 2007 3:29 pm
Forum: JFreeChart
Topic: Alignment of legend text
Replies: 4
Views: 7932

Alignment of legend text

My legend keys contain line break characters ('\n'). Also the keys are shown as legend text containing multiple lines, all lines are aligned centered. E.g.: ____short...line 1____ __longer ... line ... 2__ even ... longer .. line 3 I used the '_' in the example above just as fill characters. I would...