Results 1 to 3 of 3
  1. #1
    jwl
    jwl is offline Member
    Join Date
    Jul 2012
    Posts
    93
    Rep Power
    0

    Default Bar Chart guidance

    OK, I have an array of size n filled with numerical values.
    I have it's max and min values and average value.
    And I have a window of size 800x600 with an available paint method.

    So, I need to make a bar chart. I need a horizontal line somewhere in the middle of the screen relative to the max and min value. If the data in the array is less than average then that bar will below the average line and flipped for a value greater than the average. The top of the max value will touch the top of the screen and the bottom of the min value will touch the bottom of the screen. The average line should move up or down depending on if the maximum amount is greater than the minimum amount or if the minimum amount is greater than the maximum amount.

    Some direction on how to do this would be greatly appreciated.

  2. #2
    Junky's Avatar
    Junky is online now Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,784
    Rep Power
    7

    Default Re: Bar Chart guidance

    Personally I would start with a piece of paper and sketching out some ideas. When you have done that try converting it into code. Then post your code here and ask a specific question. At the moment your post is "Here's my assignment, do it for me"

  3. #3
    jwl
    jwl is offline Member
    Join Date
    Jul 2012
    Posts
    93
    Rep Power
    0

    Default Re: Bar Chart guidance

    Quote Originally Posted by Junky View Post
    Personally I would start with a piece of paper and sketching out some ideas. When you have done that try converting it into code. Then post your code here and ask a specific question. At the moment your post is "Here's my assignment, do it for me"
    More like here's half of my assignment. I already did a lot of it.

    a lot of things I have seen online related to bar charts are downloadable software. I'm not asking anyone to do it for me just direction. maybe a link to a site or something that could be useful.

    I did not say do it for me.
    Last edited by jwl; 10-29-2012 at 02:56 PM.

Similar Threads

  1. jfreechart plotting line chart on candlestick chart
    By amlwwalker in forum New To Java
    Replies: 0
    Last Post: 10-07-2012, 01:18 AM
  2. Need some Guidance with SOA
    By Arukas in forum New To Java
    Replies: 1
    Last Post: 02-22-2012, 09:45 AM
  3. Some Guidance
    By bengregg in forum Java Applets
    Replies: 15
    Last Post: 01-11-2011, 10:04 AM
  4. Guidance
    By gizdev in forum New To Java
    Replies: 5
    Last Post: 09-07-2008, 07:14 PM
  5. Demo bar chart and pie chart
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-23-2008, 11:22 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
  •