Results 1 to 5 of 5

Thread: JfreeChart

  1. #1
    Join Date
    Nov 2008
    Posts
    20

    JfreeChart

    Hi,

    I have a line chart that iv created using jfreechart. The graph has six lines.when the graph comes up, there are no lines on it.This is delibrate. Iv also made six check boxes. The problem i have is that when the check boxes are checked, the lines are supposed to apear, each line corresponding to the boxes that has been checked. But the lines are'nt appearing when the boxes are checked. Please can someone help. Thank you for your help.

  2. #2
    Join Date
    Dec 2007
    Posts
    1,547

    Re: JfreeChart

    1. Start Eclipse 3.0. (If you do not have Eclipse installed, visit www.eclipse.org.)
    2. Go to File -> New -> Project....
    3. Select Java Project and click on Next. Enter in a project name and click Finish.
    4. Select the project in the Package Explorer view. Go to Project -> Properties.
    5. Click on Java Build Path? on the left-hand side of the dialog box and on the right-hand side
    click on the Libraries? tab.
    6. Click on Add External JARs...? and locate jfreechart-1.0.0-pre1.jar and jcommon-1.0.0-common.jar.
    Click on OK.
    7. Select the project in the Package Explorer view. Go to File -> New -> Package. Give the package
    a name and click on Finish.
    8. Select the newly-created package in the Package Explorer view. Go to File -> New -> Class. Give the
    class a name and click on Finish.
    9. You are now ready to start using the JFreeChart library!

    For more info go to this link.

  3. #3
    Join Date
    Mar 2008
    Posts
    227

    Re: JfreeChart

    To begin with, you need to download the JFreeChart and JCommon distributions, unpack them on your local machine, and generate the API documentation.

    1. Download the latest version of the JCommon class library.
    2. From the subdirectory unpack JCommon, run javadoc to generate the Javadocs locally. If you are unfamiliar then skip this step, but then Eclipse won’t be able to show you the Javadoc popups for JCommon.
    3. Download the latest version of the JFreeChart class library,unpack it to a directory on your local computer,to the ant subdirectory of the just-unpacked JFreeChart, run ant javadoc to generate the Javadocs locally. As with step 2, you can skip this step, but then you’ll be missing the API documentation.
    4. In Eclipse, select Preferences then from the Window menu choose the Java ->Build Path -> User Libraries node in the tree. Click on the New and enter JCommon 1.0.12 as the name for a new user library.
    5. select JCommon version number in the list, Add JARs button and select the jcommon-1.0.12.jar file from the JCommon directory created in the early steps.


    for more information check here.....
    http://nchc.dl.sourceforge.net/sourc....9-install.pdf

  4. #4
    Join Date
    Nov 2008
    Posts
    20

    Re: JfreeChart

    I have already installed the jcommon, and jfreechart libraries and attached them to the program that i have written. I have no problem with displaying the graph. i just wanted to make the lines respond to the check boxes that were selected

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    Re: JfreeChart

    Which line chart Jfreechart are you using ?

    There are many alternatives -
    - Line Animation in Java
    - Different Line Styles
    - Adding Line to JTree

    .....try any one of this and check

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,689,598.07623 seconds with 16 queries