Search found 13 matches

by astenwick
Tue Jun 22, 2004 11:25 pm
Forum: JFreeChart
Topic: JFreeChart 0.9.20 and setSecondaryDataset ??
Replies: 5
Views: 6666

if you read the release notes for the new release you'll find that the function you are referring to has been removed. Instead use this new one: XYPlot.setDataset(int index, XYDataset dataset) If you've already set the first dataset in the constructor, then use index of 1 for your second plot. Datas...
by astenwick
Sat May 22, 2004 12:23 am
Forum: JFreeChart
Topic: Possible bug in CategoryPlot.setRangeAxis
Replies: 1
Views: 2816

Nevermind - I guess the problem was with my CategorySubplot subclass.

sorry!
by astenwick
Fri May 21, 2004 11:50 pm
Forum: JFreeChart
Topic: Possible bug in CategoryPlot.setRangeAxis
Replies: 1
Views: 2816

Possible bug in CategoryPlot.setRangeAxis

I'm trying to set the RangeAxis in my CategoryPlot class, after I've previously initialized it to null (because I don't know if there's going to be a shared RangeAxis with another plot yet). But when I call setRangeAxis it causes a null pointer exception. Here's stack trace: java.lang.NullPointerExc...
by astenwick
Wed May 19, 2004 12:35 am
Forum: JFreeChart
Topic: Out of memory error - JFreeChart limitation?
Replies: 4
Views: 7454

Thanks - that worked great. I couldn't beleive how much faster it rendered!
by astenwick
Tue May 18, 2004 8:19 pm
Forum: JFreeChart
Topic: Out of memory error - JFreeChart limitation?
Replies: 4
Views: 7454

Out of memory error - JFreeChart limitation?

Is there a maximum number of points on a plot that JFreeChart can handle drawing? I am asking this because I am getting an out of memory error from the JVM when I try to plot a large number of points. I have a CombinedDomainXYPlot with 12 individual XYPlots. In each plot there are 2200 data points, ...
by astenwick
Fri May 14, 2004 1:24 am
Forum: JFreeChart
Topic: CombinedDomainPlot with Category and XY subplots
Replies: 1
Views: 3752

CombinedDomainPlot with Category and XY subplots

I've created a class that can accept both XYPlots and CategoryPlots as subplots as long as they both share a common ValueAxis (domain for the XYPlot and range for the CategoryPlot). I chose to extend the XYPlot class to use as my starting point, but you probably could've used the CategoryPlot as the...
by astenwick
Fri May 14, 2004 12:34 am
Forum: JFreeChart
Topic: How to set line color which in the xychart
Replies: 1
Views: 3914

If each of your lines is a seperate series and you are using the XYLineAndShapeRenderer, use this method: public void setSeriesPaint(int series, Paint paint) { setSeriesPaint(series, paint, true); } and set the paint for each of your series like so: renderer.setSeriesPaint(0, ChartColor.yellow); ren...
by astenwick
Wed May 12, 2004 11:13 pm
Forum: JFreeChart
Topic: Plot w/ TextTitle enhacement
Replies: 6
Views: 7228

I think putting it in the base plot class would be a good idea. All my plots are shown as a png image on a webpage and have a white background and I definetely think it looks better without the rectangle.

[/code]
by astenwick
Wed May 12, 2004 7:08 pm
Forum: JFreeChart
Topic: Plot w/ TextTitle enhacement
Replies: 6
Views: 7228

I did the same thing except I put the code within my CombinedDomainPlot class. I draw the title beforing drawing the subplot. public void drawTitle(TextTitle title, Graphics2D g2, Rectangle2D area) { Rectangle2D titleArea = new Rectangle2D.Double(); double availableHeight = 0.0; double availableWidt...
by astenwick
Wed May 12, 2004 5:50 pm
Forum: JFreeChart
Topic: accessing ticklabels
Replies: 2
Views: 3753

You can create your own NumberFormat class that appends a percentage sign to all numbers (NumberFormat is an abstract class). Then use NumberAxis and set the NumberFormatOverride with your new class. ex: PercentFormat myFormatter = new PercentFormat(); NumberAxis axis = new NumberAxis(); axis.setNum...
by astenwick
Wed May 12, 2004 5:28 pm
Forum: JFreeChart
Topic: LineRenderer
Replies: 3
Views: 4027

Make sure you use the XYLineAndShapeRenderer for your line portion of your graph. Set the shape to a circle by using

renderer.setShape(new Ellipse2D.Double(-4, -4, 8, 8));

and then set the shapes to not be filled by using

renderer.setShapesFilled(false);

Hope this helps!
by astenwick
Fri May 07, 2004 11:20 pm
Forum: JFreeChart
Topic: Label Alignement Problem with JDK 1.3.1 and earlier
Replies: 5
Views: 6921

Fixed my problems too - thanks so much!
by astenwick
Wed May 05, 2004 9:16 pm
Forum: JFreeChart
Topic: Label Alignement Problem with JDK 1.3.1 and earlier
Replies: 5
Views: 6921

Same problem - can't find flag

I've looked for the flag that you mentioned and cannot find it anywhere within the TextUtilities class or any of the org.jfree.text package. I'm having the same problems as well with JDK 1.3.1, all labels are drawn incorrectly and all titles and subtitles are not drawn at all. I've stepped through t...