Search found 19 matches

by dlucas
Wed Mar 12, 2008 5:18 pm
Forum: JFreeChart
Topic: Get value of a point on xy chart
Replies: 20
Views: 50110

Hi Animika - It looks like you have a classpath problem. Make sure that ALL of the JFreeChart jars are on your classpath. You must have all 5 of the following on your classpath: 1. JFreeChart.jar 2. JFreeChart-experimental.jar 3. JFreeChart-swt.jar 4. swtgraphics2d.jar 5. JCommon.jar In addition, if...
by dlucas
Thu Mar 06, 2008 6:35 pm
Forum: JFreeChart
Topic: Get value of a point on xy chart
Replies: 20
Views: 50110

ScopeComposite was just the name of my particular application class. You must have a class, but it does not need to extend Composite. It could be main(), for example, or "private class MyClass" for example. "public class ScopeComposite extends Composite" is unique to my application - just ignore it....
by dlucas
Tue Feb 26, 2008 3:43 pm
Forum: JFreeChart
Topic: Get value of a point on xy chart
Replies: 20
Views: 50110

As you can see from the code fragment, I did not implement any code for ChartMouseMoved. Since ChartMouseListener is an interface, you must implement all of its defined methods, even if they are only blank. I have made an initial attempt to get tool tips to work, but I have not been successful yet. ...
by dlucas
Tue Feb 26, 2008 5:26 am
Forum: JFreeChart
Topic: Get value of a point on xy chart
Replies: 20
Views: 50110

Hi - Here is a code fragment that I wrote and is being used in an SWT Composite. It does the following: 1. If a left mouse click occurs (presumably on or near a point on my XYSeriesCollection based chart) the standard JFree chart mouse code will mark the point with both a horizontal and a vertical c...
by dlucas
Mon Feb 25, 2008 6:51 am
Forum: JFreeChart
Topic: How to set paint color of standard zoom rectangle line
Replies: 1
Views: 2473

How to set paint color of standard zoom rectangle line

Hi Dave - I have checked the developer documentation and searched through the available setter methods, but I haven't found a way to control the paint color of the zoom rectangle lines. The problem that I am having is that I am using a black XYPlot background and the zoom rectangle lines are also bl...
by dlucas
Tue Feb 19, 2008 6:52 am
Forum: JFreeChart
Topic: Serious LogAxis bug!!! Why hasn't anyone else noticed?!!
Replies: 3
Views: 4821

Thanks, Dave -
by dlucas
Tue Feb 19, 2008 6:51 am
Forum: JFreeChart
Topic: ColorBrewer in JFreeChart ?
Replies: 3
Views: 4004

Great post! Thanks for the info :D

I spent about 3 hours tonight incorporating some of Dr. Brewer's color schemes into my charts.
by dlucas
Thu Feb 14, 2008 6:49 am
Forum: JFreeChart
Topic: Serious LogAxis bug!!! Why hasn't anyone else noticed?!!
Replies: 3
Views: 4821

I tested my code with the LogarithmicAxis and this axis displays the correct number of tick marks per decade, so the problem is definately a problem with LogAxis only.

I turned in a bug report on the Sourceforge site so maybe when David gets back we will get a fix?
by dlucas
Wed Feb 13, 2008 11:52 pm
Forum: JFreeChart
Topic: Get value of a point on xy chart
Replies: 20
Views: 50110

Did you figure out why it lags behind one point yet? I'm going to be working on this same issue this weekend and would appreciate knowing the solution.
by dlucas
Wed Feb 13, 2008 5:37 am
Forum: JFreeChart
Topic: Get value of a point on xy chart
Replies: 20
Views: 50110

The source to the demo is part of the $50 documentation package that the author sells separately. I can't send it to you, but perhaps when David sees this he will have other options. Alternatively, if one of the other users who sees this has working code in this topic area, they will send you an exc...
by dlucas
Wed Feb 13, 2008 12:48 am
Forum: JFreeChart
Topic: ****News on JFreeChart in Swt!!!****
Replies: 3
Views: 5790

Don't use SWT_AWT unless you really want that method. You will find 4 demo programs for straight SWT usage in the 1.08 or above source. Mine are located at this partial path after installing the source: jfreechart-1.0.8a\swt\org\jfree\experimental\chart\swt\demo\*.java What you are looking for can b...
by dlucas
Wed Feb 13, 2008 12:24 am
Forum: JFreeChart
Topic: Get value of a point on xy chart
Replies: 20
Views: 50110

You will find examples of how to do this in the demo program under Miscellaneous/Crosshairs/Crosshair Demo 1-4. I am currently studying these demos myself and hope to figure out how to get the data points to display their values on a mouse-over event in addition to the text boxes.
by dlucas
Wed Feb 13, 2008 12:16 am
Forum: JFreeChart
Topic: Serious LogAxis bug!!! Why hasn't anyone else noticed?!!
Replies: 3
Views: 4821

Serious LogAxis bug!!! Why hasn't anyone else noticed?!!

Ok guys - I've been using LogAxis for a month on an almost daily basis and I've noticed that there are a lot of posts about it so apparently other people are also using it. Am I the only one so far that has noticed that LogAxis using base 10 (I haven't tried other bases, just the most common one) di...
by dlucas
Sun Jan 27, 2008 3:22 am
Forum: JFreeChart
Topic: Small Fractions on Log Charts
Replies: 7
Views: 15281

I don't know if this helps, but it is important when graphing data on log axes to control the minimum displayed value. Otherwise, an autoranging axis can produce unexpected numbers of decades. I am not having problems with my log axes using LogAxis (I haven't tried LogarithmicAxis) and the following...
by dlucas
Sun Jan 06, 2008 9:30 am
Forum: JFreeChart
Topic: Embedding a JFreeChart object in an SWT group
Replies: 4
Views: 11768

Hi Henry - I have now successfully embedded two ChartComposites into a very complex nested group composite now. The one thing that I misunderstood was that ChartComposite takes a shell as one of the arguments in most of the demos and due to my lack of experience with Java and SWT, I failed to realiz...