Search found 7 matches

by ahill
Wed Jan 10, 2007 1:42 pm
Forum: JFreeChart
Topic: JFreeChart for a Website
Replies: 5
Views: 8328

The package org.jfree.chart.servlet appears to have some stuff to assist with using JFreeChart in a Servlet environment, but it looks pretty basic. A better bet if your using JSP might be to use the Cewolf tag library to help you manage the process of creating the img tags and rendering the chart wh...
by ahill
Mon Jan 08, 2007 3:22 am
Forum: JFreeChart
Topic: Comparable does not compare
Replies: 4
Views: 4999

You should probably override equals and hashCode too. The default implementation in Object is just: public boolean equals(Object obj) { return (this == obj); Theres lengthy waffle about the need for consistency between equals, hasCode, and compareTo in the relevant javadocs, so its probably somethin...
by ahill
Mon Jan 08, 2007 3:08 am
Forum: JFreeChart
Topic: URGENT : Multi-lines tooltips with ImageMap (not APPLET)
Replies: 2
Views: 5875

Hi Linh, This is an html / browser limitation. Normal tooltips in html use the title attribute to set a tooltip for the link, and it doesn't take html, just text. The normal JFreeChart tooltips are generated using the org.jfree.chart.imagemap.StandardToolTipFragmentGenerator . Looking at the code it...
by ahill
Fri Dec 08, 2006 2:48 am
Forum: JFreeChart
Topic: How can I specify the target page???
Replies: 4
Views: 4434

Surely CategoryURLGenerator only generates the URL itself? The target is a seperate html attribute in the area tag. Looking at the code in ChartEntity it uses an implementation of the URLTagFragmentGenerator in getImageMapAreaTag() to generate the full html for the tags in the html area map. The def...
by ahill
Mon Dec 04, 2006 9:44 am
Forum: JFreeChart
Topic: Label Positisions for sub Category
Replies: 2
Views: 5118

It seems your question was answered by rohi in the other thread ("Group Stack Bar Chart"). :-) you are welcome. to rotate your subcategory labels, you will use something like this: Code: domainAxis.setSubLabelFont(domainAxis.getSubLabelFont().deriveFont(0, AffineTransform.getRotateInstance(Math.PI /...
by ahill
Mon Dec 04, 2006 9:24 am
Forum: JFreeChart
Topic: Label Positisions for sub Category
Replies: 2
Views: 5118

Hi Brian, Been mucking about myself this arvo trying to do just that and was about to post the same question! I dont think its possible using the SubCategoryAxis class. Looking in the drawSubCategoryLabels method I see: TextUtilities.drawRotatedString(label, g2, xx, yy, TextAnchor.CENTER, 0.0, TextA...
by ahill
Mon Nov 20, 2006 11:54 pm
Forum: JFreeChart
Topic: How to generate a URL for a pie chart section label
Replies: 8
Views: 14854

Ive also been looking at trying to add urls for the pie legend in an html map these last couple of hours, and while the news for 1.0.3 says URL generation is fixed for legend items it doesnt seem to be the case for pie charts at least. As for the actual labels, these don't appear to have any form of...