Results 1 to 3 of 3

Thread: Bar Chart

  1. #1
    surbjits is offline Member
    Join Date
    Aug 2013
    Posts
    1
    Rep Power
    0

    Default Bar Chart

    Hi guys,

    I need to print out a bar chart, via a call from a method barChartPrinter. I.e. barChartPrinter(5, 6, 2); would print: a vertical column of 5 XX's followed by
    a space then a vertical column of 6 XX's and a vertical column of 2 XX's.

    The numbers are based on user input, so I'm thinking I need to gather the numbers and store those in an array. And I'm thinking a for loop will be involved,
    but I'm not sure how I'd do it.

    Thanks!

  2. #2
    jim829 is online now Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,777
    Rep Power
    5

    Default Re: Bar Chart

    Where is your code? What have you tried?

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    vector_ever is offline Senior Member
    Join Date
    Jul 2013
    Posts
    187
    Rep Power
    2

    Default Re: Bar Chart

    read about JfreeChart, you will find what you are looking for

Similar Threads

  1. Bar Chart guidance
    By jwl in forum New To Java
    Replies: 2
    Last Post: 10-29-2012, 02:33 PM
  2. Bar Chart
    By jwl in forum New To Java
    Replies: 2
    Last Post: 10-27-2012, 05:25 PM
  3. jfreechart plotting line chart on candlestick chart
    By amlwwalker in forum New To Java
    Replies: 0
    Last Post: 10-07-2012, 01:18 AM
  4. iReport Chart
    By rose_mary in forum Other IDEs
    Replies: 0
    Last Post: 12-09-2008, 05:17 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
  •