Search found 11 matches

by tonyGriffiths
Wed Jan 24, 2007 5:50 pm
Forum: JFreeChart
Topic: piechart border obscruring legend
Replies: 6
Views: 13577

JRE = 1.5.0_05
OS = Windows XP Pro

[img]
http://www.intetech.com/images/demo.JPG
[/img]

See image for my results

Tony[/img]
by tonyGriffiths
Wed Jan 24, 2007 5:30 pm
Forum: JFreeChart
Topic: piechart border obscruring legend
Replies: 6
Views: 13577

This runs ok, and demonstrates the problem Tony import java.awt.Color; import java.awt.Font; import java.text.DecimalFormat; import java.util.ArrayList; import javax.swing.JFrame; import javax.swing.JPanel; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.char...
by tonyGriffiths
Wed Jan 24, 2007 4:29 pm
Forum: JFreeChart
Topic: piechart border obscruring legend
Replies: 6
Views: 13577

It's tricky as this is a custmizer for a cewolf servlet. The customizer could be constructed as: String[] wellTypesToDisplay = { "production", "injection", "waste disposal" }; int numberOfWells = 100; DatasetProducer pieTotalsData = new DatasetProducer() { public Object produceDataset(Map params) { ...
by tonyGriffiths
Wed Jan 24, 2007 12:00 pm
Forum: JFreeChart
Topic: piechart border obscruring legend
Replies: 6
Views: 13577

piechart border obscruring legend

I've added a customised legend as a subtitle as per the legendwrappeddemo example. I use the following code: JFreeChart chart = (JFreeChart) _chart; PiePlot plot = (PiePlot) chart.getPlot(); // Chart plot.setOutlinePaint(null); // Title chart.getTitle().setFont(new Font("SansSerif", Font.BOLD, 12));...
by tonyGriffiths
Tue Aug 01, 2006 2:26 pm
Forum: JFreeChart
Topic: Multiple TimeSeries scaling axis question
Replies: 8
Views: 10139

I've created a class that wraps the data for the graph. This has a method to return the maximum value for the timeseries. Then I just do the following: public class MultipleTimeSeriesGraphCustomizer implements ChartPostProcessor { private MyGraphClass graphData; public void processChart(Object chart...
by tonyGriffiths
Tue Aug 01, 2006 2:26 pm
Forum: JFreeChart
Topic: Multiple TimeSeries scaling axis question
Replies: 8
Views: 10139

I've created a class that wraps the data for the graph. This has a method to return the maximum value for the timeseries. Then I just do the following: public class MultipleTimeSeriesGraphCustomizer implements ChartPostProcessor { private MyGraphClass graphData; public void processChart(Object chart...
by tonyGriffiths
Tue Aug 01, 2006 2:10 pm
Forum: JFreeChart
Topic: Multiple TimeSeries scaling axis question
Replies: 8
Views: 10139

I've created a class that wraps the data for the graph. This has a method to return the maximum value for the timeseries. Then I just do the following: public class MultipleTimeSeriesGraphCustomizer implements ChartPostProcessor { private MyGraphClass graphData; public void processChart(Object chart...
by tonyGriffiths
Tue Aug 01, 2006 2:10 pm
Forum: JFreeChart
Topic: Multiple TimeSeries scaling axis question
Replies: 8
Views: 10139

I've created a class that wraps the data for the graph. This has a method to return the maximum value for the timeseries. Then I just do the following: public class MultipleTimeSeriesGraphCustomizer implements ChartPostProcessor { private MyGraphClass graphData; public void processChart(Object chart...
by tonyGriffiths
Tue Aug 01, 2006 2:09 pm
Forum: JFreeChart
Topic: Multiple TimeSeries scaling axis question
Replies: 8
Views: 10139

I've created a class that wraps the data for the graph. This has a method to return the maximum value for the timeseries. Then I just do the following: public class MultipleTimeSeriesGraphCustomizer implements ChartPostProcessor { private MyGraphClass graphData; public void processChart(Object chart...
by tonyGriffiths
Wed Jun 21, 2006 11:04 am
Forum: JFreeChart
Topic: Multiple TimeSeries scaling axis question
Replies: 8
Views: 10139

Here's an answer

Ok, so I'm replying to my own question, how sad!

I've found the method setRange(minValue,maxValue) on the NumberAxis class, and this works great.

Tony
by tonyGriffiths
Wed Jun 21, 2006 10:43 am
Forum: JFreeChart
Topic: Multiple TimeSeries scaling axis question
Replies: 8
Views: 10139

Multiple TimeSeries scaling axis question

I have a single graph that contains several timeseries, and uses multiple axes. However, whilst the time line for each series has the same date range, the values are on completely different scales. I'd like to force the graph to scale each axis so that they all use the range [minValue - maxValue], w...