Search found 13 matches
- 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...
- Sat May 22, 2004 12:23 am
- Forum: JFreeChart
- Topic: Possible bug in CategoryPlot.setRangeAxis
- Replies: 1
- Views: 2816
- 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...
- Wed May 19, 2004 12:35 am
- Forum: JFreeChart
- Topic: Out of memory error - JFreeChart limitation?
- Replies: 4
- Views: 7454
- 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, ...
- 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...
- 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...
- Wed May 12, 2004 11:13 pm
- Forum: JFreeChart
- Topic: Plot w/ TextTitle enhacement
- Replies: 6
- Views: 7228
- 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...
- 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...
- Wed May 12, 2004 5:28 pm
- Forum: JFreeChart
- Topic: LineRenderer
- Replies: 3
- Views: 4027
- Fri May 07, 2004 11:20 pm
- Forum: JFreeChart
- Topic: Label Alignement Problem with JDK 1.3.1 and earlier
- Replies: 5
- Views: 6921
- 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...