Results 1 to 6 of 6
  1. #1
    theChameleon is offline Member
    Join Date
    Oct 2010
    Posts
    26
    Rep Power
    0

    Default JFreeChart question

    hi, i successfully drew the candlestick chart for stocks, but i have a few problems and need help.

    1) if i close the window of the chart, the whole program closes. how do i prevent this?

    2) how do i add additional lines to the candlestick chart? eg. EMA, SMA, etc etc. can i add points (coordinates) on the candlestick chart?

    3) how do i allow the user to draw trend lines and fibbonaci lines?

    4) how do i add additional technical charts like MACD, STO, etc etc below the original candlestick chart?

    5) how do i make the values update-able, instead of having to draw a new chart every time?(i want to make a live/realtime chart)

    if JFreeChart cant do it, do u know of any other API that can do it?

    thanks.

  2. #2
    baloda is offline Member
    Join Date
    Nov 2010
    Location
    New Delhi
    Posts
    50
    Rep Power
    0

    Default

    ur application is stand alone or web based

    if ur doing this in a web based application the here is the example

    Create chart and Display them dynamically in JSP

  3. #3
    theChameleon is offline Member
    Join Date
    Oct 2010
    Posts
    26
    Rep Power
    0

    Default

    Quote Originally Posted by baloda View Post
    ur application is stand alone or web based

    if ur doing this in a web based application the here is the example

    Create chart and Display them dynamically in JSP
    it is a stand alone app.

  4. #4
    baloda is offline Member
    Join Date
    Nov 2010
    Location
    New Delhi
    Posts
    50
    Rep Power
    0

    Default

    I think will be helpful

    Java Examples: Chart in Java

    good luck!!

  5. #5
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    Quote Originally Posted by theChameleon View Post
    1) if i close the window of the chart, the whole program closes. how do i prevent this?

    in the window of the chart don't call the setDefaultCloseOperation(EXIT_ON_CLOSE) because this will close the whole program. instead implement a close button and in the listener of this button you can invoke the method dispose() which will close only the chart window.

  6. #6
    theChameleon is offline Member
    Join Date
    Oct 2010
    Posts
    26
    Rep Power
    0

    Default

    Quote Originally Posted by baloda View Post
    I think will be helpful

    Java Examples: Chart in Java

    good luck!!
    hey, thanks for the help. that will definitely speed up the development.

Similar Threads

  1. JFreeChart 1.0.11
    By Java Tip in forum Java Software
    Replies: 3
    Last Post: 04-18-2014, 08:27 PM
  2. Jfreechart
    By aaruviswa in forum Web Frameworks
    Replies: 2
    Last Post: 03-17-2011, 06:51 AM
  3. JfreeChart
    By puk284 in forum Advanced Java
    Replies: 1
    Last Post: 05-12-2009, 04:52 PM
  4. JFreeChart 1.0.8
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 11-27-2007, 08:27 PM
  5. JFreeChart 1.0.5
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-10-2007, 05:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •