Search found 13 matches

by socrateone
Wed May 03, 2006 10:37 pm
Forum: JFreeChart
Topic: nullPointer execption when running demo jar file
Replies: 3
Views: 3517

have you tried just double-clicking on the jar?

I notice that you're launching from the command line.
Is X11 running? What OS are you using?
by socrateone
Wed May 03, 2006 6:13 pm
Forum: JFreeChart
Topic: piechart problem
Replies: 3
Views: 3844

Code: Select all

// the first argument is the index of the dataset (the piece of the pie)
// the second argument is the percent of the section is outside the circle. 
plot.setExplodePercent(1, 0.50);

by socrateone
Wed May 03, 2006 6:10 pm
Forum: JFreeChart
Topic: Color and label in a PieChart
Replies: 11
Views: 20198

Answers

To the first question, how can you set individual colors to each section of the pie chart: // the "0, 1, 2, 3, (and on) are the indexes of the dataset. plot.setSectionPaint(0, new Color(160, 160, 255)); plot.setSectionPaint(1, new Color(128, 128, 32)); plot.setSectionPaint(2, myCustomPaint); plot.se...
by socrateone
Wed May 03, 2006 5:22 pm
Forum: JFreeChart
Topic: developer guide and code example issues
Replies: 6
Views: 5972

Thank you! That worked beautifully. Why not have a base class or an interface of "label", and have all of these elements contain one of these labels. Then, you could reference that label and make any changes you want to it. ei: CategoryAxis domainAxis = plot.getDomainAxis(); Label label = domainAxis...
by socrateone
Wed May 03, 2006 3:18 pm
Forum: JFreeChart
Topic: developer guide and code example issues
Replies: 6
Views: 5972

Thanks

Thank you for the reply. I'm glad to help. However, I still don't know how to reference the series lables in a CategoryDataset-based chart. This isn't doing it: JFreeChart chart = ChartFactory.createBarChart( null, null, null, myDataSet, PlotOrientation.VERTICAL, false, false, false ); CategoryPlot ...
by socrateone
Tue May 02, 2006 7:52 pm
Forum: JFreeChart
Topic: developer guide and code example issues
Replies: 6
Views: 5972

Ok, so I'm an idiot...

I didn't realize that (duh) CUSTOMrendere was a CUSTOM class, ie: not in the JFreeChart library, but a CUSTOM-made inner class. Sorry, I'm not used to inner classes.

However, the problem with the Documentation still stands, I believe.
by socrateone
Tue May 02, 2006 7:38 pm
Forum: JFreeChart
Topic: developer guide and code example issues
Replies: 6
Views: 5972

developer guide and code example issues

I just spent the $40 for the developer guide and the source code for the example in the demo app, thinking that it would be up to date. Specifically, I wanted to look at the source code for the examples. In the BarChartDemo3.java file, I wanted to know how to have multiple bars with different colors...
by socrateone
Mon May 01, 2006 11:07 pm
Forum: JFreeChart
Topic: java.lang.NoSuchMethodError: org.jfree.data.time.TimeTableXY
Replies: 7
Views: 10184

found a fix for this

I still had the old lib files in my build directory. I needed to clean the build directory with an ant clean. That removed the old directory and the conflict.
by socrateone
Mon May 01, 2006 10:26 pm
Forum: JFreeChart
Topic: help width bar
Replies: 2
Views: 4013

instead of having several pieces of datat with one sereis, try multiple series with one peice of data each.
by socrateone
Mon May 01, 2006 10:13 pm
Forum: JFreeChart
Topic: java.lang.NoSuchMethodError: org.jfree.data.time.TimeTableXY
Replies: 7
Views: 10184

one more thing...

I think an important thing to point out is that this error is in the catalina logs. There isn't any compile time error thrown. When I try to load the page with the chart in my web app, I get a blank page and that NoSuchMethodError is in the log files.
by socrateone
Mon May 01, 2006 10:11 pm
Forum: JFreeChart
Topic: java.lang.NoSuchMethodError: org.jfree.data.time.TimeTableXY
Replies: 7
Views: 10184

similar problem

I'm having a similar problem: java.lang.NoSuchMethodError: org.jfree.chart.ChartFactory.createBarChart(Ljava/lang/String; Ljava/lang/String;Ljava/lang/String; Lorg/jfree/data/category/CategoryDataset; Lorg/jfree/chart/plot/PlotOrientation;ZZZ) Lorg/jfree/chart/JFreeChart; at org.jfree.chart.demo.ser...
by socrateone
Mon May 01, 2006 9:28 pm
Forum: JFreeChart
Topic: CategoryMarker class missing from build path
Replies: 1
Views: 2620

Wrong library

I was including version 0.9.2, which doesn't have the class, but referencing the javadocs for 1.0.1. I had deployed the demo application, which seams to have been made with 0.9.2. When I unzipped the lib file, I was unzipping the file the I had in my /lib directory, which was the right one. However,...
by socrateone
Mon May 01, 2006 8:54 pm
Forum: JFreeChart
Topic: CategoryMarker class missing from build path
Replies: 1
Views: 2620

CategoryMarker class missing from build path

I'm having trouble adding a CategoryMarker to a bar chart. This was my code: JFreeChart chart = ChartFactory.createBarChart( "Chart Title", null, null, catDataSet, PlotOrientation.VERTICAL, false, false, false ); Marker averageMarker = new CategoryMarker(100); averageMarker.setLabel("Average"); plot...