aspose file tools*
The moose likes Other Open Source Projects and the fly likes cewolf PieEnhancer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "cewolf PieEnhancer" Watch "cewolf PieEnhancer" New topic
Author

cewolf PieEnhancer

Levi Raymond
Greenhorn

Joined: Dec 08, 2008
Posts: 21
Hie guys,
I'm having an issue with my pie charts . When I'm reporting on a small number of data items the labels look neat but when I report on about ten data items that have descriptions that are more that 10 characters long while using PieEnhancer attribute <cewolf:param name="simpleLabels" value="false" />, these descriptions begin to be wrapped into the label text boxes in a manner I cannot control , as well as these label text boxes appearing to be overlapping each other such that you cannot make out anything from the information contained in the text boxes.
The appearance with <cewolf:param name="simpleLabels" value="true" /> is worse as some labels are completely overlapped as they appear one over the other but the dimesions here allow have a longer length to display the labels.
Is there a way to change the dimensions of the labels (label text boxes) so that they do not overlap and appear crowded on a pie chart using a post processor and can I enforce a gap between the labels.
If this is not possible I will be forced to drop these pie charts from my reports.
Please assist.


SCJP5, SCWCD5
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42276
    
  64
One solution would be to make the chart wider - that way the labels will be wider, and won't wrap (assuming simpleLabels=false).

Another solution might be not to have any labels in the chart itself, but instead to use a separate legend (which could be on any of the sides of the chart, or be a completely separate image).


Ping & DNS - my free Android networking tools app
Levi Raymond
Greenhorn

Joined: Dec 08, 2008
Posts: 21
Thanks Ulf for your response. How do I disable the labels from displaying on the pie chart as this seems like the a default feature?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42276
    
  64
Good question :-) Try the PieEnhancer that comes with cewolf-1.1.2; it has a <cewolf:param name="showSectionLabels" value="true/false"/> attribute.
Levi Raymond
Greenhorn

Joined: Dec 08, 2008
Posts: 21
Thanks, it worked.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cewolf PieEnhancer