Hiding weekends

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Cheewah

Hiding weekends

Post by Cheewah » Sat Feb 15, 2003 11:11 am

Hi,

First let me thank the creator of JFreeChart for his time and efforts spent in developing JFreeChart and making it such a powerful charting API. I have the following questions and I hope someone can enlighten me.

1. I am working on a java applet that charts financial data and need the ability to hide weekends (saturday and sunday). Anyone has a solution to this for jFreeChart?

2. Anyone has example of how to make a scrollbar to work with a zoomed-in chart?

3. (A little off-topic) I am using a small subset of the overall API, is there anyway for me to extract only the required class files?


Thanks.
Cheewah

David Gilbert

Re: Hiding weekends

Post by David Gilbert » Mon Feb 17, 2003 9:43 am

Cheewah wrote:
> 1. I am working on a java applet that charts financial data
> and need the ability to hide weekends (saturday and sunday).
> Anyone has a solution to this for jFreeChart?

http://www.object-refinery.com/phorum-3 ... t=5709&v=f


> 2. Anyone has example of how to make a scrollbar to work with
> a zoomed-in chart?

Because JFreeChart uses a Graphics2D instance to draw everything, it is difficult to add scrollbars anywhere except around the complete chart (by embedding the ChartPanel in a JScrollPane), but I don't think that is what you want.

> 3. (A little off-topic) I am using a small subset of the
> overall API, is there anyway for me to extract only the
> required class files?

If you start with a clean set of source files, and use 'javac' to compile your application/applet, then I'm pretty sure that it will only compile the classes that are required by your code. You'll also need to manually compile the resource classes, since these get missed by javac since they are never directly referenced in the code.

Regards,

Dave Gilbert

Locked