Some Newbie Help

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
FunkyELF
Posts: 11
Joined: Wed Nov 29, 2006 3:48 pm

Some Newbie Help

Post by FunkyELF » Wed Nov 29, 2006 3:54 pm

Hello everyone. I just started using jfreechart for a little project I'm working on.

It works great, nice and fast.

There are only a couple of things I'd like to change on the chart I'm making.

One is to emphasize the X axis (at 0) ...make it thicker or something.
The other thing is to add some labels at certain points of interest which I would compute myself based on the data.

I am having trouble finding documentation. I saw that I could purchase a developer guide book, but other than that I haven't found much.
Is this book good? Up to date?
Since jfreechart seems to be the most commonly used charting program, I wouldn't mind paying for some documentation if it is good.

Last thing...
I like how I can zoom in on a chart using the mouse and I figured out how to reset it back to the original size. When I am zoomed in however, is there a way to pan around the chart?

Thanks,
~Eric

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Some Newbie Help

Post by david.gilbert » Wed Nov 29, 2006 5:53 pm

FunkyELF wrote:One is to emphasize the X axis (at 0) ...make it thicker or something.
If your chart is based on XYPlot, there are methods:

setRangeZeroBaselineVisible(boolean);
setRangeZeroBaselineStroke(Stroke);
setRangeZeroBaselinePaint(Paint);

...that can be used to highlight the zero line (simulating a kind of x-axis). What I can't figure out right now is, why is there no corresponding set of methods for the domain axis, and why is this not supported for the CategoryPlot class?
FunkyELF wrote:The other thing is to add some labels at certain points of interest which I would compute myself based on the data.
Look through the classes in org.jfree.chart.annotations.*.
FunkyELF wrote:I am having trouble finding documentation. I saw that I could purchase a developer guide book, but other than that I haven't found much.
Is this book good? Up to date?
Since jfreechart seems to be the most commonly used charting program, I wouldn't mind paying for some documentation if it is good.
It is good (not perfect) and getting better (I happen to be working on it right now). We provide swift refunds for people that are not satisfied with their purchase, and very few people have requested a refund. I think the guide is value for money (you also get all the source code for th JFreeChart demo collection), and it is the source of funding for my work on JFreeChart. So it would be great if you end up buying a copy. :D
FunkyELF wrote:I like how I can zoom in on a chart using the mouse and I figured out how to reset it back to the original size. When I am zoomed in however, is there a way to pan around the chart?
There is no panning facility at present, unfortunately.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

FunkyELF
Posts: 11
Joined: Wed Nov 29, 2006 3:48 pm

Re: Some Newbie Help

Post by FunkyELF » Wed Nov 29, 2006 8:16 pm

david.gilbert wrote:
FunkyELF wrote:One is to emphasize the X axis (at 0) ...make it thicker or something.
If your chart is based on XYPlot, there are methods:

setRangeZeroBaselineVisible(boolean);
setRangeZeroBaselineStroke(Stroke);
setRangeZeroBaselinePaint(Paint);

...that can be used to highlight the zero line (simulating a kind of x-axis). What I can't figure out right now is, why is there no corresponding set of methods for the domain axis, and why is this not supported for the CategoryPlot class?
Yeah, by highlight the X axis I didn't mean to highlight X = 0, I meant to highlight Y = 0 which would actually be the X axis.

Unfortunately, this would require the missing domain methods of which you speak.

I am interested in pointing out places where the chart crosses the 0 boundary and labeling the X value at that spot, so a different color or stroke is actually what I'm looking for.
david.gilbert wrote:
FunkyELF wrote:I am having trouble finding documentation. I saw that I could purchase a developer guide book, but other than that I haven't found much.
Is this book good? Up to date?
Since jfreechart seems to be the most commonly used charting program, I wouldn't mind paying for some documentation if it is good.
It is good (not perfect) and getting better (I happen to be working on it right now). We provide swift refunds for people that are not satisfied with their purchase, and very few people have requested a refund. I think the guide is value for money (you also get all the source code for th JFreeChart demo collection), and it is the source of funding for my work on JFreeChart. So it would be great if you end up buying a copy. :D
I bought a copy today.

FunkyELF
Posts: 11
Joined: Wed Nov 29, 2006 3:48 pm

Post by FunkyELF » Wed Nov 29, 2006 8:26 pm

Actually, it was the range I was looking for, just didn't set it to visible.

Locked