Hi all,

How do I create a bar graph in Java to hold a passed array of units and frequency?

Thank youin advance for helping.

Member Avatar for iamthwee

Use the 2d graphics stuff

My graph is drawing upside down. I don't know what I am doing wrong.

What co-ordinates you are taking ?

Member Avatar for iamthwee

>My graph is drawing upside down. I don't know what I am doing wrong.

You're not doing anything wrong. That is how it is.

+-------------------------------------->x
  |
  |
  |
  |
  V
 y
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.